ucar.unidata.data
Class DataDataChoice

java.lang.Object
  extended by ucar.unidata.data.DataChoice
      extended by ucar.unidata.data.DataDataChoice

public class DataDataChoice
extends DataChoice

A data choice that simply holds a reference to a visad.Data object

Version:
$Revision: 1.86 $
Author:
IDV development team

Field Summary
 
Fields inherited from class ucar.unidata.data.DataChoice
description, id, name, NULL_DATASELECTION, NULL_PROPERTIES, NULL_REQUESTPROPERTIES, parent, PROP_ICON, PROP_REQUESTER, properties
 
Constructor Summary
DataDataChoice()
          The bean constructor.
DataDataChoice(DataDataChoice other)
          Create a new DataChoice, using the state of the given DataChoice to initialize the new object.
DataDataChoice(String name, Data data)
          Create a new DataChoice.
 
Method Summary
 void addDataChangeListener(DataChangeListener listener)
          add listener.
 DataChoice cloneMe()
          Clone me
protected  Data getData(DataCategory category, DataSelection dataSelection, Hashtable requestProperties)
          Return the Data object that this DataChoice represents.
 void removeDataChangeListener(DataChangeListener listener)
          Remove the DataChangeListener.
 
Methods inherited from class ucar.unidata.data.DataChoice
addCategory, addCurrentName, addParamNameToCategories, basicallyEquals, cloneDataChoices, createClone, equals, getAllDateTimes, getAllLevels, getAllLevels, getCategories, getCurrentNames, getData, getData, getDataCategories, getDataCategories, getDataSelection, getDataSources, getDescription, getDisplayCategory, getFinalDataChoices, getFixedRequestProperties, getForUser, getFullDescription, getId, getIndexedName, getName, getParent, getProperties, getProperty, getProperty, getProperty, getSelectedDateTimes, getStringId, hashCode, initAfterUnPersistence, isEndUserFormula, mergeRequestProperties, setCategories, setDataCategories, setDataSelection, setDescription, setFixedRequestProperties, setId, setLevelSelection, setName, setObjectProperty, setParent, setProperties, setProperty, setProperty, setTimeSelection, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataDataChoice

public DataDataChoice()
The bean constructor. We need this for xml decoding.


DataDataChoice

public DataDataChoice(DataDataChoice other)
Create a new DataChoice, using the state of the given DataChoice to initialize the new object.

Parameters:
other - The other data choice.

DataDataChoice

public DataDataChoice(String name,
                      Data data)
Create a new DataChoice.

Parameters:
name - The short name of this choice.
data - The data
Method Detail

cloneMe

public DataChoice cloneMe()
Clone me

Specified by:
cloneMe in class DataChoice
Returns:
my clone

getData

protected Data getData(DataCategory category,
                       DataSelection dataSelection,
                       Hashtable requestProperties)
                throws VisADException,
                       RemoteException,
                       DataCancelException
Return the Data object that this DataChoice represents.

Specified by:
getData in class DataChoice
Parameters:
category - The DataCategory used to subset this call (usually not used but placed in here just in case it is needed.)
dataSelection - Allows one to subset the data request (e.g., asking for a smaller set of times, etc.)
requestProperties - Extra selection properties
Returns:
The data.
Throws:
DataCancelException - if the request to get data is canceled
RemoteException - problem accessing remote data
VisADException - problem creating the Data object

addDataChangeListener

public void addDataChangeListener(DataChangeListener listener)
add listener. This is a noop

Specified by:
addDataChangeListener in class DataChoice
Parameters:
listener - listener

removeDataChangeListener

public void removeDataChangeListener(DataChangeListener listener)
Remove the DataChangeListener.

Specified by:
removeDataChangeListener in class DataChoice
Parameters:
listener - The DataChangeListener to remove.