public class UserDataChoice extends DataChoice
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
label
DataChoice label
|
boolean |
persistent
A hack used by the DerivedDataChoice for when we don't save the user entered choices in a bundle
|
protected java.lang.Object |
value
numeric value
|
description, id, name, NULL_DATASELECTION, NULL_PROPERTIES, NULL_REQUESTPROPERTIES, parent, PROP_ICON, PROP_REQUESTER, properties
Constructor and Description |
---|
UserDataChoice()
Default constructor; used for unpersistence
|
UserDataChoice(java.lang.String label)
Create a new UserDataChoice
|
UserDataChoice(java.lang.String label,
java.lang.String defaultValue)
Create a new UserDataChoice
|
UserDataChoice(UserDataChoice other)
Copy constructor, set properties from the other.
|
Modifier and Type | Method and Description |
---|---|
void |
addDataChangeListener(DataChangeListener listener)
Add a
DataChangeListener . |
DataChoice |
cloneMe()
Make a clone of me.
|
boolean |
equals(java.lang.Object other)
Check for equality.
|
protected visad.Data |
getData(DataCategory category,
DataSelection dataSelection,
java.util.Hashtable requestProperties)
A no-op
|
java.lang.String |
getDefaultValue()
Get the DefaultValue property.
|
java.lang.String |
getLabel()
Get the label for this.
|
java.lang.Object |
getValue()
Get the value for this choice.
|
void |
removeDataChangeListener(DataChangeListener listener)
Remove a
DataChangeListener . |
void |
setDefaultValue(java.lang.String value)
Set the DefaultValue property.
|
void |
setLabel(java.lang.String l)
Set the label for this
|
void |
setValue(java.lang.Object v)
Set the value for this choice.
|
java.lang.String |
toString()
Return a String representation of this UserDataChoice.
|
addCategory, addCurrentName, addParamNameToCategories, basicallyEquals, cloneDataChoices, createClone, 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
public boolean persistent
protected java.lang.String label
protected java.lang.Object value
public UserDataChoice()
public UserDataChoice(UserDataChoice other)
other
- other UserDataChoice for propertiespublic UserDataChoice(java.lang.String label)
label
- label for this choicepublic UserDataChoice(java.lang.String label, java.lang.String defaultValue)
label
- label for this choicedefaultValue
- The defaultValuepublic DataChoice cloneMe()
cloneMe
in class DataChoice
public java.lang.String getLabel()
public void setLabel(java.lang.String l)
l
- new labelpublic java.lang.String toString()
toString
in class DataChoice
public java.lang.Object getValue()
public void setValue(java.lang.Object v)
v
- the valuepublic boolean equals(java.lang.Object other)
equals
in class DataChoice
other
- object in questiono
equals thisprotected visad.Data getData(DataCategory category, DataSelection dataSelection, java.util.Hashtable requestProperties) throws visad.VisADException, java.rmi.RemoteException
getData
in class DataChoice
category
- The data category of the request.dataSelection
- Identifies any subsetting of the data.requestProperties
- Hashtable that holds any detailed request
properties.java.rmi.RemoteException
- Java RMI problemvisad.VisADException
- VisAD problempublic void addDataChangeListener(DataChangeListener listener)
DataChangeListener
. Does nothingaddDataChangeListener
in class DataChoice
listener
- listener to addpublic void removeDataChangeListener(DataChangeListener listener)
DataChangeListener
. Does nothingremoveDataChangeListener
in class DataChoice
listener
- listener to removepublic void setDefaultValue(java.lang.String value)
value
- The new value for DefaultValuepublic java.lang.String getDefaultValue()