public abstract class BasicVizierMode extends java.lang.Object implements VizierMode
Constructor and Description |
---|
BasicVizierMode(java.lang.String name,
uk.ac.starlink.util.gui.ArrayTableColumn[] columns)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.awt.Component |
getComponent()
Returns the graphical component containing user controls for this
mode.
|
java.lang.String |
getName()
Returns a name for this mode.
|
javax.swing.JTable |
getQueryableTable()
Returns a table whose rows represent VizieR catalogues.
|
VizierInfo |
getVizierInfo()
Returns the vizier info object.
|
protected abstract Queryable[] |
loadQueryables()
Provides the array of Queryable objects which represents the
catalogues which can be searched by this mode.
|
void |
readData()
Perform whatever updating from the remote server is necessary
to initialise the state of this component from the currently
installed VizierInfo.
|
void |
setVizierInfo(VizierInfo vizinfo)
Sets the object which can query a VizieR server and store metadata.
|
public BasicVizierMode(java.lang.String name, uk.ac.starlink.util.gui.ArrayTableColumn[] columns)
name
- mode namecolumns
- array of Queryable-based columns for catalogue
displaypublic void setVizierInfo(VizierInfo vizinfo)
VizierMode
setVizierInfo
in interface VizierMode
vizinfo
- vizier search objectpublic VizierInfo getVizierInfo()
public java.awt.Component getComponent()
VizierMode
getComponent
in interface VizierMode
public java.lang.String getName()
VizierMode
getName
in interface VizierMode
public javax.swing.JTable getQueryableTable()
VizierMode
ArrayTableModel
with items
that are Queryable
s.getQueryableTable
in interface VizierMode
public void readData()
VizierMode
readData
in interface VizierMode
protected abstract Queryable[] loadQueryables()
ArrayTableColumn
s
used by this mode.
This method is not called on the event dispatch thread.Copyright ? 2003-2017 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.