public class HapiTableLoadDialog extends AbstractTableLoadDialog
Constructor and Description |
---|
HapiTableLoadDialog()
No-arg constructor.
|
HapiTableLoadDialog(java.util.function.Consumer<java.net.URL> docUrlHandler)
Constructor using a URL handler.
|
Modifier and Type | Method and Description |
---|---|
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.
|
javax.swing.JMenu[] |
getMenus()
Returns an array of menus which may be presented in the window
alongside the query component.
|
javax.swing.Action[] |
getToolbarActions()
Returns an array of actions suitable for presentation as toolbar
buttons alongside the query component.
|
boolean |
isReady()
Indicates whether the submit action should be enabled.
|
asIOException, configure, createFormatSelector, getDescription, getIcon, getName, getQueryComponent, getSelectedFormat, getSubmitAction, isAvailable, isComponentShowing, setIcon, setIconUrl, setMenus, setToolbarActions, submit, updateReady
public HapiTableLoadDialog()
public HapiTableLoadDialog(java.util.function.Consumer<java.net.URL> docUrlHandler)
docUrlHandler
- handler for documentation URLs,
typically displays in a browser;
may be nullprotected java.awt.Component createQueryComponent()
AbstractTableLoadDialog
createQueryComponent
in class AbstractTableLoadDialog
public javax.swing.JMenu[] getMenus()
TableLoadDialog
getMenus
in interface TableLoadDialog
getMenus
in class AbstractTableLoadDialog
public javax.swing.Action[] getToolbarActions()
TableLoadDialog
getToolbarActions
in interface TableLoadDialog
getToolbarActions
in class AbstractTableLoadDialog
public boolean isReady()
AbstractTableLoadDialog
The default implementation returns true.
isReady
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.