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.
|
addToolbarAction, asIOException, configure, createFormatSelector, getDescription, getIcon, getName, getQueryComponent, getSelectedFormat, getSubmitAction, isAvailable, isComponentShowing, setIcon, setIconUrl, setMenus, setToolbarActions, submit, updateReadypublic 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()
AbstractTableLoadDialogcreateQueryComponent in class AbstractTableLoadDialogpublic javax.swing.JMenu[] getMenus()
TableLoadDialoggetMenus in interface TableLoadDialoggetMenus in class AbstractTableLoadDialogpublic javax.swing.Action[] getToolbarActions()
TableLoadDialoggetToolbarActions in interface TableLoadDialoggetToolbarActions in class AbstractTableLoadDialogpublic boolean isReady()
AbstractTableLoadDialogThe default implementation returns true.
isReady 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.