Class VizierTableLoadDialog
java.lang.Object
uk.ac.starlink.table.gui.AbstractTableLoadDialog
uk.ac.starlink.topcat.vizier.VizierTableLoadDialog
- All Implemented Interfaces:
uk.ac.starlink.table.gui.TableLoadDialog
public class VizierTableLoadDialog
extends uk.ac.starlink.table.gui.AbstractTableLoadDialog
TableLoadDialogue which directly interrogtes the VizieR catalogue service.
- Since:
- 19 Oct 2009
- Author:
- Mark Taylor, Thomas Boch
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String[]URLs known to host a standard VizieR service. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTargetActionListener(ActionListener listener) Adds a listener which will be notified when the user-selected target may change.voidaddTargetCaretListener(CaretListener listener) Adds a listener which will be notified when the text entered in the user-selected target boxes may change.protected Componentuk.ac.starlink.table.gui.TableLoaderstatic StringTurns a text string into a string which can be appended to a URL to specify a value-less query argument.static StringTurns a name, value pair into a string which can be appended to a URL to specify a query argument and its value.Returns the radius string in degrees.Returns the search target, as presented to the VizieR server's-cparameter.booleanIndicates whether enough information has been filled in by the user to specify a search on a given catalogue.booleanbooleanisReady()voidremoveTargetActionListener(ActionListener listener) Removes a listener previously added byaddTargetActionListener(ActionListener).voidremoveTargetCaretListener(CaretListener listener) Removes a listener previously added byaddTargetCaretListener(CaretListener).Methods inherited from class uk.ac.starlink.table.gui.AbstractTableLoadDialog
addToolbarAction, asIOException, configure, createFormatSelector, getDescription, getIcon, getMenus, getName, getQueryComponent, getSelectedFormat, getSubmitAction, getToolbarActions, isComponentShowing, setIcon, setIconUrl, setMenus, setToolbarActions, submit, updateReady
-
Field Details
-
SERVER_URLS
URLs known to host a standard VizieR service. This list is subject to change, but not very often. The definitive list is available from http://vizier.u-strasbg.fr/vizier/mirrors.gml.
-
-
Constructor Details
-
VizierTableLoadDialog
public VizierTableLoadDialog()Constructor.
-
-
Method Details
-
createQueryComponent
- Specified by:
createQueryComponentin classuk.ac.starlink.table.gui.AbstractTableLoadDialog
-
isAvailable
public boolean isAvailable()- Specified by:
isAvailablein interfaceuk.ac.starlink.table.gui.TableLoadDialog- Overrides:
isAvailablein classuk.ac.starlink.table.gui.AbstractTableLoadDialog
-
getTarget
Returns the search target, as presented to the VizieR server's-cparameter.- Returns:
- formatted target string; empty string for all rows
-
getRadius
Returns the radius string in degrees.- Returns:
- formatted radius string; empty string for all rows
-
createTableLoader
public uk.ac.starlink.table.gui.TableLoader createTableLoader() -
isReady
public boolean isReady()- Overrides:
isReadyin classuk.ac.starlink.table.gui.AbstractTableLoadDialog
-
hasTarget
public boolean hasTarget()Indicates whether enough information has been filled in by the user to specify a search on a given catalogue.- Returns:
- true if a queryable query can take place; false if more info needs to be entered
-
addTargetActionListener
Adds a listener which will be notified when the user-selected target may change.- Parameters:
listener- listener to add
-
removeTargetActionListener
Removes a listener previously added byaddTargetActionListener(ActionListener).- Parameters:
listener- listener to remove
-
addTargetCaretListener
Adds a listener which will be notified when the text entered in the user-selected target boxes may change.- Parameters:
listener- the listener to add
-
removeTargetCaretListener
Removes a listener previously added byaddTargetCaretListener(CaretListener).- Parameters:
listener- listener to remove
-
encodeArg
-
encodeArg
-