ucar.unidata.data
Class DataSelectionComponent

java.lang.Object
  extended by ucar.unidata.data.DataSelectionComponent
Direct Known Subclasses:
AddeImageSelection, PointDataSource.PlotModelSelectionComponent

public abstract class DataSelectionComponent
extends Object

Used by a display control and field selector to show arbitrary data selection stuff. This is used to pass information into a control or data source.


Field Summary
protected  DataSelection dataSelection
          We can be used by a display control and this is the control's data selection
 
Constructor Summary
DataSelectionComponent(String name)
          ctor
 
Method Summary
abstract  void applyToDataSelection(DataSelection dataSelection)
          Apply settings to the data selection
protected abstract  JComponent doMakeContents()
          Hook method to make the contents
 JComponent getContents()
          Make if needed and return the gui contents
 JComponent getContents(DataSelection dataSelection)
          Make if needed and return the gui contents
 String getName()
          get name
 boolean getShowInControlProperties()
          Should this show in the control properties, subclasses can override as needed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dataSelection

protected DataSelection dataSelection
We can be used by a display control and this is the control's data selection

Constructor Detail

DataSelectionComponent

public DataSelectionComponent(String name)
ctor

Parameters:
name - name
Method Detail

getContents

public JComponent getContents()
Make if needed and return the gui contents

Returns:
gui contents

getContents

public JComponent getContents(DataSelection dataSelection)
Make if needed and return the gui contents

Parameters:
dataSelection - If created by a display control this is the control's dataselection
Returns:
gui contents

doMakeContents

protected abstract JComponent doMakeContents()
Hook method to make the contents

Returns:
gui contents

applyToDataSelection

public abstract void applyToDataSelection(DataSelection dataSelection)
Apply settings to the data selection

Parameters:
dataSelection - data selection to apply to

getName

public String getName()
get name

Returns:
name

getShowInControlProperties

public boolean getShowInControlProperties()
Should this show in the control properties, subclasses can override as needed.

Returns:
true