OpenAPI 1.0

com.aquafold.openapi.gui
Interface AQTableDataEditor


public interface AQTableDataEditor

This class represents a table data editor frame (JFrame) where an entry form can be programmatically installed.

TODO (provide script example)


Method Summary
 void execute(AQServerConnection conn, String sql)
          Executes an edit query and inserts resulting table into the bottom part of this table data editor frame.
 void openForm(Object createFunction, Object setupFunction)
          Creates and opens a table data editor frame with the user-supplied form installed.
 

Method Detail

openForm

void openForm(Object createFunction,
              Object setupFunction)
Creates and opens a table data editor frame with the user-supplied form installed. This method can be called only once. The script which creates the form component will be executed in the Swing Event Dispatcher Thread (EDT), returning a value of type JComponent.

Parameters:
createFunction - An AquaScript function which must return an object of type JComponent.
setupFunction - An AquaScript function which will be called when the form component created by createFunction is installed in a JFrame. This function must be declared with a single argument which is a pointer to the Table Data Editor JFrame instance. This argument can be null.

execute

void execute(AQServerConnection conn,
             String sql)
Executes an edit query and inserts resulting table into the bottom part of this table data editor frame.

Parameters:
conn - Server connection.
sql - Query string.

OpenAPI 1.0


Copyright © 2010 AquaFold, Inc. All Rights Reserved. Use is subject to license terms.