Package edu.wisc.ssec.mcidasv.data
Class ComboDataChoice
java.lang.Object
ucar.unidata.data.DataChoice
edu.wisc.ssec.mcidasv.data.ComboDataChoice
A data choice that simply holds a reference to a visad.Data object
- Version:
- $Revision$
- Author:
- IDV development team
-
Field Summary
FieldsFields 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.ComboDataChoice
(ComboDataChoice other) Create a new DataChoice, using the state of the given DataChoice to initialize the new object.ComboDataChoice
(String id, String name, Hashtable props, Data data) ComboDataChoice
(String name, List categories, Hashtable props) Create a new DataChoice with a random identifier. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDataChangeListener
(DataChangeListener listener) add listener.cloneMe()
Clone me.getData()
protected Data
getData
(DataCategory category, DataSelection dataSelection, Hashtable requestProperties) Return theData
object that this DataChoice represents.void
removeDataChangeListener
(DataChangeListener listener) Remove theDataChangeListener
.void
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
-
Field Details
-
CATEGORIES
-
data
The data
-
-
Constructor Details
-
ComboDataChoice
public ComboDataChoice()The bean constructor. We need this for xml decoding. -
ComboDataChoice
Create a new DataChoice, using the state of the given DataChoice to initialize the new object.- Parameters:
other
- The other data choice.
-
ComboDataChoice
Create a new DataChoice with a random identifier.- Parameters:
name
- Short name of this choice.categories
- List ofDataCategories
.props
- Properties for this data choice.null
is allowed.
-
ComboDataChoice
-
-
Method Details
-
cloneMe
Clone me.- Specified by:
cloneMe
in classDataChoice
- Returns:
- my clone
-
setData
-
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
-
getData
-
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.
-