Package uk.ac.starlink.topcat.vizier
Class SearchVizierMode
- java.lang.Object
-
- uk.ac.starlink.topcat.vizier.SearchVizierMode
-
- All Implemented Interfaces:
VizierMode
- Direct Known Subclasses:
CategoryVizierMode,WordVizierMode
public abstract class SearchVizierMode extends java.lang.Object implements VizierMode
Abstract VizierMode which presents a list of catalogues as selected in some way by other GUI actions of the user.- Since:
- 19 Oct 2009
- Author:
- Mark Taylor
-
-
Constructor Summary
Constructors Constructor Description SearchVizierMode(java.lang.String name, VizierTableLoadDialog tld, boolean useSplit)Constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract java.awt.ComponentcreateSearchComponent()Constructs the GUI component which the user will fill in to specify what catalogues they want to select from.java.awt.ComponentgetComponent()Returns the graphical component containing user controls for this mode.java.lang.StringgetName()Returns a name for this mode.javax.swing.JTablegetQueryableTable()Returns a table whose rows represent VizieR catalogues.javax.swing.ActiongetSearchAction()Returns the action which starts a search for catalogues.protected abstract java.lang.StringgetSearchArgs()Returns the arguments, based on the current state of the search component, to pass to the VizieR server to search for available catalogues.VizierInfogetVizierInfo()Returns the vizier info object.booleanincludeObsoletes()Indicates whether the search should report obsolete tables or just the newest version of each.booleanincludeSubTables()Indicates whether the search should report sub-tables or just top-level resources.voidsetVizierInfo(VizierInfo vizinfo)Sets the object which can query a VizieR server and store metadata.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface uk.ac.starlink.topcat.vizier.VizierMode
readData
-
-
-
-
Constructor Detail
-
SearchVizierMode
public SearchVizierMode(java.lang.String name, VizierTableLoadDialog tld, boolean useSplit)Constructor.- Parameters:
name- mode nametld- controlling load dialogue instanceuseSplit- true to use a JSplitPane to separate query panel from catalogue display table; false to use a fixed layout
-
-
Method Detail
-
createSearchComponent
protected abstract java.awt.Component createSearchComponent()
Constructs the GUI component which the user will fill in to specify what catalogues they want to select from. The setEnable() method on the returned component should ideally enable/disable all GUI controls visible in it.- Returns:
- search component
-
getSearchArgs
protected abstract java.lang.String getSearchArgs()
Returns the arguments, based on the current state of the search component, to pass to the VizieR server to search for available catalogues.- Returns:
- URL fragment giving catalogue search arguments
-
getName
public java.lang.String getName()
Description copied from interface:VizierModeReturns a name for this mode.- Specified by:
getNamein interfaceVizierMode- Returns:
- name mode name
-
setVizierInfo
public void setVizierInfo(VizierInfo vizinfo)
Description copied from interface:VizierModeSets the object which can query a VizieR server and store metadata. This method must be called before the mode is called upon to contact the server.- Specified by:
setVizierInfoin interfaceVizierMode- Parameters:
vizinfo- vizier search object
-
getVizierInfo
public VizierInfo getVizierInfo()
Returns the vizier info object.- Returns:
- vizinfo
-
getComponent
public java.awt.Component getComponent()
Description copied from interface:VizierModeReturns the graphical component containing user controls for this mode.- Specified by:
getComponentin interfaceVizierMode- Returns:
- component
-
getQueryableTable
public javax.swing.JTable getQueryableTable()
Description copied from interface:VizierModeReturns a table whose rows represent VizieR catalogues. The table's model must be aArrayTableModelwith items that areQueryables.- Specified by:
getQueryableTablein interfaceVizierMode- Returns:
- table of queryable objects representing Vizier catalogues
-
getSearchAction
public javax.swing.Action getSearchAction()
Returns the action which starts a search for catalogues.- Returns:
- start search action
-
includeSubTables
public boolean includeSubTables()
Indicates whether the search should report sub-tables or just top-level resources.- Returns:
- false for just top-level resources, true for sub-tables as well
-
includeObsoletes
public boolean includeObsoletes()
Indicates whether the search should report obsolete tables or just the newest version of each.- Returns:
- false for just current versions, true for obsolete versions as well
-
-