|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.ac.starlink.table.gui.AbstractTableLoadDialog
uk.ac.starlink.table.gui.SQLTableLoadDialog
public class SQLTableLoadDialog
Load dialogue for loading data from a database via JDBC.
| Constructor Summary | |
|---|---|
SQLTableLoadDialog()
Constructor. |
|
| Method Summary | |
|---|---|
void |
configure(StarTableFactory tfact,
javax.swing.Action submitAct)
Provides some configuration which must be performed before use. |
protected java.awt.Component |
createQueryComponent()
Constructs the query component used by this dialogue. |
TableLoader |
createTableLoader()
Returns a new object which specifies how table loading is to be performed. |
boolean |
isAvailable()
The default implementation returns true. |
| Methods inherited from class uk.ac.starlink.table.gui.AbstractTableLoadDialog |
|---|
asIOException, createFormatSelector, getDescription, getIcon, getMenus, getName, getQueryComponent, getSelectedFormat, getSubmitAction, getToolbarActions, isComponentShowing, isReady, setIcon, setIconUrl, setMenus, setToolbarActions, submit, updateReady |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SQLTableLoadDialog()
| Method Detail |
|---|
public boolean isAvailable()
AbstractTableLoadDialog
isAvailable in interface TableLoadDialogisAvailable in class AbstractTableLoadDialog
public void configure(StarTableFactory tfact,
javax.swing.Action submitAct)
TableLoadDialogTableLoadDialog.getQueryComponent() is called.
The tfact argument provides a table factory which
resembles the one to be used for generating tables.
Although this factory should not in general be used or retained,
since the one presented later to the TableLoader should be used
instead, it can be interrogated for known table formats etc.
The submitAct argument sets the action which
when invoked will cause TableLoadDialog.createTableLoader() to be called.
Its setEnabled method can be called to reflect readiness,
and it can be added as a listener to dialogue-specific events
which indicate that a selection has been made.
configure in interface TableLoadDialogconfigure in class AbstractTableLoadDialogtfact - representative table factorysubmitAct - action for load submissionprotected java.awt.Component createQueryComponent()
AbstractTableLoadDialog
createQueryComponent in class AbstractTableLoadDialogpublic TableLoader createTableLoader()
TableLoadDialogIf the dialogue is not in a suitable state, either return null, or, if you want to provide more detailed information about what's wrong, throw a RuntimeException with an informative message.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||