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.
|
asIOException, createFormatSelector, getDescription, getIcon, getMenus, getName, getQueryComponent, getSelectedFormat, getSubmitAction, getToolbarActions, isComponentShowing, isReady, setIcon, setIconUrl, setMenus, setToolbarActions, submit, updateReady
public boolean isAvailable()
AbstractTableLoadDialog
isAvailable
in interface TableLoadDialog
isAvailable
in class AbstractTableLoadDialog
public void configure(StarTableFactory tfact, Action submitAct)
TableLoadDialog
TableLoadDialog.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 TableLoadDialog
configure
in class AbstractTableLoadDialog
tfact
- representative table factorysubmitAct
- action for load submissionprotected Component createQueryComponent()
AbstractTableLoadDialog
createQueryComponent
in class AbstractTableLoadDialog
public TableLoader createTableLoader()
TableLoadDialog
If 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 © 2024 Central Laboratory of the Research Councils. All Rights Reserved.