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
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
ConstructorsConstructorDescriptionSearchVizierMode
(String name, VizierTableLoadDialog tld, boolean useSplit) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Component
Constructs the GUI component which the user will fill in to specify what catalogues they want to select from.Returns the graphical component containing user controls for this mode.getName()
Returns a name for this mode.Returns a table whose rows represent VizieR catalogues.Returns the action which starts a search for catalogues.protected abstract String
Returns the arguments, based on the current state of the search component, to pass to the VizieR server to search for available catalogues.Returns the vizier info object.boolean
Indicates whether the search should report obsolete tables or just the newest version of each.boolean
Indicates whether the search should report sub-tables or just top-level resources.void
setVizierInfo
(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 Details
-
SearchVizierMode
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 Details
-
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
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
Description copied from interface:VizierMode
Returns a name for this mode.- Specified by:
getName
in interfaceVizierMode
- Returns:
- name mode name
-
setVizierInfo
Description copied from interface:VizierMode
Sets 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:
setVizierInfo
in interfaceVizierMode
- Parameters:
vizinfo
- vizier search object
-
getVizierInfo
Returns the vizier info object.- Returns:
- vizinfo
-
getComponent
Description copied from interface:VizierMode
Returns the graphical component containing user controls for this mode.- Specified by:
getComponent
in interfaceVizierMode
- Returns:
- component
-
getQueryableTable
Description copied from interface:VizierMode
Returns a table whose rows represent VizieR catalogues. The table's model must be aArrayTableModel
with items that areQueryable
s.- Specified by:
getQueryableTable
in interfaceVizierMode
- Returns:
- table of queryable objects representing Vizier catalogues
-
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
-