public class SQLTableLoadDialog extends AbstractTableLoadDialog
| Constructor and Description |
|---|
SQLTableLoadDialog()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
configure(StarTableFactory tfact,
Action submitAct)
Provides some configuration which must be performed before use.
|
protected 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.
|
addToolbarAction, asIOException, createFormatSelector, getDescription, getIcon, getMenus, getName, getQueryComponent, getSelectedFormat, getSubmitAction, getToolbarActions, isComponentShowing, isReady, setIcon, setIconUrl, setMenus, setToolbarActions, submit, updateReadypublic boolean isAvailable()
AbstractTableLoadDialogisAvailable in interface TableLoadDialogisAvailable in class AbstractTableLoadDialogpublic void configure(StarTableFactory tfact, 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 Component createQueryComponent()
AbstractTableLoadDialogcreateQueryComponent 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.
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.