public class ComboDataChoice extends DataChoice
Modifier and Type | Field and Description |
---|---|
private static List<DataCategory> |
CATEGORIES |
private Data |
data
The data
|
description, id, name, NULL_DATASELECTION, NULL_PROPERTIES, NULL_REQUESTPROPERTIES, parent, PROP_ICON, PROP_REQUESTER, properties
Constructor and Description |
---|
ComboDataChoice()
The bean constructor.
|
ComboDataChoice(ComboDataChoice other)
Create a new DataChoice, using the state of the given DataChoice to
initialize the new object.
|
ComboDataChoice(String name,
List categories,
Hashtable props)
Create a new DataChoice with a random identifier.
|
ComboDataChoice(String id,
String name,
Hashtable props,
Data data) |
Modifier and Type | Method and Description |
---|---|
void |
addDataChangeListener(DataChangeListener listener)
add listener.
|
DataChoice |
cloneMe()
Clone me.
|
Data |
getData() |
protected Data |
getData(DataCategory category,
DataSelection dataSelection,
Hashtable requestProperties)
Return the
Data object that this DataChoice represents. |
void |
removeDataChangeListener(DataChangeListener listener)
Remove the
DataChangeListener . |
void |
setData(Data data) |
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
private static final List<DataCategory> CATEGORIES
public ComboDataChoice()
public ComboDataChoice(ComboDataChoice other)
other
- The other data choice.public ComboDataChoice(String name, List categories, Hashtable props)
name
- Short name of this choice.categories
- List of DataCategories
.props
- Properties for this data choice. null
is allowed.public ComboDataChoice(String id, String name, Hashtable props, Data data)
public DataChoice cloneMe()
cloneMe
in class DataChoice
protected Data getData(DataCategory category, DataSelection dataSelection, Hashtable requestProperties) throws VisADException, RemoteException, DataCancelException
Data
object that this DataChoice represents.getData
in class DataChoice
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 propertiesDataCancelException
- if the request to get data is canceledRemoteException
- problem accessing remote dataVisADException
- problem creating the Data objectpublic void addDataChangeListener(DataChangeListener listener)
addDataChangeListener
in class DataChoice
listener
- listenerpublic void removeDataChangeListener(DataChangeListener listener)
DataChangeListener
.removeDataChangeListener
in class DataChoice
listener
- The DataChangeListener
to remove.