Package ucar.unidata.data
Class DataDataChoice
java.lang.Object
ucar.unidata.data.DataChoice
ucar.unidata.data.DataDataChoice
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
ConstructorsConstructorDescriptionThe bean constructor.DataDataChoice
(String name, Data data) Create a new DataChoice.DataDataChoice
(DataDataChoice other) Create a new DataChoice, using the state of the given DataChoice to initialize the new object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDataChangeListener
(DataChangeListener listener) add listener.cloneMe()
Clone meprotected Data
getData
(DataCategory category, DataSelection dataSelection, Hashtable requestProperties) Return theData
object that this DataChoice represents.void
removeDataChangeListener
(DataChangeListener listener) Remove theDataChangeListener
.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
-
Constructor Details
-
DataDataChoice
public DataDataChoice()The bean constructor. We need this for xml decoding. -
DataDataChoice
Create a new DataChoice, using the state of the given DataChoice to initialize the new object.- Parameters:
other
- The other data choice.
-
DataDataChoice
Create a new DataChoice.- Parameters:
name
- The short name of this choice.data
- The data
-
-
Method Details
-
cloneMe
Clone me- Specified by:
cloneMe
in classDataChoice
- Returns:
- my clone
-
getData
protected Data getData(DataCategory category, DataSelection dataSelection, Hashtable requestProperties) throws VisADException, RemoteException, DataCancelException Return theData
object that this DataChoice represents.- Specified by:
getData
in classDataChoice
- Parameters:
category
- TheDataCategory
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 canceledRemoteException
- problem accessing remote dataVisADException
- problem creating the Data object
-
addDataChangeListener
add listener. This is a noop- Specified by:
addDataChangeListener
in classDataChoice
- Parameters:
listener
- listener
-
removeDataChangeListener
Remove theDataChangeListener
.- Specified by:
removeDataChangeListener
in classDataChoice
- Parameters:
listener
- TheDataChangeListener
to remove.
-