|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.data.DataChoice
ucar.unidata.data.UserDataChoice
public class UserDataChoice
Represents a DataChoice in a formula that is numeric.
| Field Summary | |
|---|---|
protected 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 Object |
value
numeric value |
| 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 | |
|---|---|
UserDataChoice()
Default constructor; used for unpersistence |
|
UserDataChoice(String label)
Create a new UserDataChoice |
|
UserDataChoice(String label,
String defaultValue)
Create a new UserDataChoice |
|
UserDataChoice(UserDataChoice other)
Copy constructor, set properties from the other. |
|
| Method Summary | |
|---|---|
void |
addDataChangeListener(DataChangeListener listener)
Add a DataChangeListener. |
DataChoice |
cloneMe()
Make a clone of me. |
boolean |
equals(Object other)
Check for equality. |
protected Data |
getData(DataCategory category,
DataSelection dataSelection,
Hashtable requestProperties)
A no-op |
String |
getDefaultValue()
Get the DefaultValue property. |
String |
getLabel()
Get the label for this. |
Object |
getValue()
Get the value for this choice. |
void |
removeDataChangeListener(DataChangeListener listener)
Remove a DataChangeListener. |
void |
setDefaultValue(String value)
Set the DefaultValue property. |
void |
setLabel(String l)
Set the label for this |
void |
setValue(Object v)
Set the value for this choice. |
String |
toString()
Return a String representation of this UserDataChoice. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public boolean persistent
protected String label
protected Object value
| Constructor Detail |
|---|
public UserDataChoice()
public UserDataChoice(UserDataChoice other)
other - other UserDataChoice for propertiespublic UserDataChoice(String label)
label - label for this choice
public UserDataChoice(String label,
String defaultValue)
label - label for this choicedefaultValue - The defaultValue| Method Detail |
|---|
public DataChoice cloneMe()
cloneMe in class DataChoicepublic String getLabel()
public void setLabel(String l)
l - new labelpublic String toString()
toString in class DataChoicepublic Object getValue()
public void setValue(Object v)
v - the valuepublic boolean equals(Object other)
equals in class DataChoiceother - object in question
o equals this
protected Data getData(DataCategory category,
DataSelection dataSelection,
Hashtable requestProperties)
throws VisADException,
RemoteException
getData in class DataChoicecategory - The data category of the request.dataSelection - Identifies any subsetting of the data.requestProperties - Hashtable that holds any detailed request
properties.
RemoteException - Java RMI problem
VisADException - VisAD problempublic void addDataChangeListener(DataChangeListener listener)
DataChangeListener. Does nothing
addDataChangeListener in class DataChoicelistener - listener to addpublic void removeDataChangeListener(DataChangeListener listener)
DataChangeListener. Does nothing
removeDataChangeListener in class DataChoicelistener - listener to removepublic void setDefaultValue(String value)
value - The new value for DefaultValuepublic String getDefaultValue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||