uk.ac.starlink.datanode.tree
Class TreeTableLoadDialog

java.lang.Object
  extended by uk.ac.starlink.table.gui.AbstractTableLoadDialog
      extended by uk.ac.starlink.datanode.tree.TreeTableLoadDialog
All Implemented Interfaces:
TableLoadDialog

public class TreeTableLoadDialog
extends AbstractTableLoadDialog

Table load dialogue which can select tables from a datanode tree.

Since:
14 Sep 2010
Author:
Mark Taylor

Constructor Summary
TreeTableLoadDialog()
          Constructor.
 
Method Summary
protected  TableNodeChooser createNodeChooser()
          Constructs a node chooser for use with this dialogue.
 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 isReady()
          Indicates whether the submit action should be enabled.
 
Methods inherited from class uk.ac.starlink.table.gui.AbstractTableLoadDialog
asIOException, configure, createFormatSelector, getDescription, getIcon, getMenus, getName, getQueryComponent, getSelectedFormat, getSubmitAction, getToolbarActions, isAvailable, isComponentShowing, 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

TreeTableLoadDialog

public TreeTableLoadDialog()
Constructor.

Method Detail

createQueryComponent

public Component createQueryComponent()
Description copied from class: AbstractTableLoadDialog
Constructs the query component used by this dialogue. Called only once (lazily).

Specified by:
createQueryComponent in class AbstractTableLoadDialog
Returns:
query component

isReady

public boolean isReady()
Description copied from class: AbstractTableLoadDialog
Indicates whether the submit action should be enabled. The implementation should return true if the user should be allowed to submit the query, or false if the internal state of this dialogue is known to be incomplete in some way. Evaluation should be fast; the return does not need to provide a guarantee that a submitted query will suceed.

The default implementation returns true.

Overrides:
isReady in class AbstractTableLoadDialog
Returns:
false iff dialogue state is known to be incomplete

createTableLoader

public TableLoader createTableLoader()
Description copied from interface: TableLoadDialog
Returns a new object which specifies how table loading is to be performed. The actions performed by the returned object will presumably be determined by the state at call time of this dialogues GUI component.

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.

Returns:
new table loader object

createNodeChooser

protected TableNodeChooser createNodeChooser()
Constructs a node chooser for use with this dialogue.

Returns:
new node chooser


Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.