public class ListDataChoice extends DataChoice
description, id, name, NULL_DATASELECTION, NULL_PROPERTIES, NULL_REQUESTPROPERTIES, parent, PROP_ICON, PROP_REQUESTER, properties| Constructor and Description |
|---|
ListDataChoice()
Dummy param-less constructor so we can be recreated thru reflection.
|
ListDataChoice(ListDataChoice other)
The cloning ctor.
|
ListDataChoice(java.lang.Object id,
java.lang.String name,
java.lang.String description,
java.util.List categories)
The regular constructor from a
DerivedDataDescriptor
TODO: Right now the children of a ListDataChoice do not refererence
their parent. |
ListDataChoice(java.lang.String name,
java.util.List children)
ctor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDataChangeListener(DataChangeListener listener)
Add the data change listener.
|
protected void |
addDataChangeListeners(DataChoice dataChoice)
Add the data change listeners to the data choice
|
boolean |
basicallyEquals(DataChoice that)
This just checks for basic equality.
|
protected void |
checkCategories()
This method runs through the list of
DataCategory-s. |
DataChoice |
cloneMe()
Create a new instance of this object.
|
protected java.lang.String |
convertLabel(java.lang.String label,
java.util.List dataChoices)
Iterate through the children DataChoice-s.
|
boolean |
equals(java.lang.Object o)
Override the equals method.
|
protected void |
findDataCategories()
For now set this object's data categories to be the union
of the data categories of its sub-data choices.
|
protected void |
flushCache()
Remove any objects created by this choice from the cache.
|
java.util.List |
getAllDateTimes()
Get the union of all of the children
DataChoice-s times. |
java.util.List |
getAllLevels(DataSelection dataSelection)
Get the union of all of the children
DataChoice-s levels. |
java.util.List |
getChoices()
Get the children choices.
|
protected visad.Data |
getData(DataCategory category,
DataSelection dataSelection,
java.util.Hashtable requestProperties)
Get the data
|
protected java.lang.Object[] |
getDataList(DataCategory category,
DataSelection dataSelection,
java.util.Hashtable requestProperties)
Get the array of data from the children data choices
|
void |
getDataSources(java.util.List dataSources)
Add to the given list all the data sources
|
void |
getFinalDataChoices(java.util.List finalDataChoices)
Add to the given list all final data choices (i.e.,
the leafs of the datachoice tree)
|
java.lang.String |
getFullDescription()
Get the full Description for this DataChoice.
|
java.lang.String |
getIndexedName(int index)
Return the name of the index'th child DataChoice.
|
java.util.List |
getSelectedDateTimes()
Get the union of all of the children
DataChoice-s selected times |
int |
hashCode()
Override the hasCode method.
|
protected void |
inherit(DataCategory src)
This method determines the type of inheritance defined by the
given DataCategory.
|
void |
initAfterUnPersistence(java.util.Hashtable properties)
This gets called after the data choice has been unpersisted
|
void |
removeDataChangeListener(DataChangeListener listener)
Remove the data change listener.
|
void |
setChildrenDataChoices(java.util.List dataChoices)
set the children
|
void |
setChoices(java.util.List l)
Set the child DataChoices.
|
addCategory, addCurrentName, addParamNameToCategories, cloneDataChoices, createClone, getAllLevels, getCategories, getCurrentNames, getData, getData, getDataCategories, getDataCategories, getDataSelection, getDescription, getDisplayCategory, getFixedRequestProperties, getForUser, getId, getName, getParent, getProperties, getProperty, getProperty, getProperty, getStringId, isEndUserFormula, mergeRequestProperties, setCategories, setDataCategories, setDataSelection, setDescription, setFixedRequestProperties, setId, setLevelSelection, setName, setObjectProperty, setParent, setProperties, setProperty, setProperty, setTimeSelection, toStringpublic ListDataChoice()
public ListDataChoice(ListDataChoice other)
other - The object to instantiate from.public ListDataChoice(java.lang.Object id,
java.lang.String name,
java.lang.String description,
java.util.List categories)
DerivedDataDescriptor
TODO: Right now the children of a ListDataChoice do not refererence
their parent. If they do we will need to clone the children here
so a DataChoice only has one parent.id - The idname - namedescription - descriptioncategories - categoriespublic ListDataChoice(java.lang.String name,
java.util.List children)
name - namechildren - The children data choicespublic void setChildrenDataChoices(java.util.List dataChoices)
dataChoices - the childrenprotected visad.Data getData(DataCategory category, DataSelection dataSelection, java.util.Hashtable requestProperties) throws visad.VisADException, java.rmi.RemoteException, DataCancelException
getData in class DataChoicecategory - categorydataSelection - selectionrequestProperties - propertiesDataCancelException - On badnessjava.rmi.RemoteException - On badnessvisad.VisADException - On badnessprotected java.lang.Object[] getDataList(DataCategory category, DataSelection dataSelection, java.util.Hashtable requestProperties) throws visad.VisADException, java.rmi.RemoteException, DataCancelException
category - categorydataSelection - selectionrequestProperties - propertiesDataCancelException - On badnessjava.rmi.RemoteException - On badnessvisad.VisADException - On badnesspublic DataChoice cloneMe()
cloneMe in class DataChoicepublic java.lang.String getIndexedName(int index)
getIndexedName in class DataChoiceindex - The (0 based) index.protected void checkCategories()
DataCategory-s. If any
of them are "inherited" categories then we replace the inherited
category with the data categories of the children DataChoice-s.public void initAfterUnPersistence(java.util.Hashtable properties)
initAfterUnPersistence in class DataChoiceproperties - Propertiespublic void getFinalDataChoices(java.util.List finalDataChoices)
getFinalDataChoices in class DataChoicefinalDataChoices - The list to add topublic void getDataSources(java.util.List dataSources)
getDataSources in class DataChoicedataSources - List to put data sources intoprotected void inherit(DataCategory src)
src - The DataCategory to look at.protected java.lang.String convertLabel(java.lang.String label,
java.util.List dataChoices)
label - The inital (possibly macro containing) label.dataChoices - The list of child DataChoices.public java.lang.String getFullDescription()
getFullDescription in class DataChoicepublic java.util.List getAllLevels(DataSelection dataSelection)
DataChoice-s levels.getAllLevels in class DataChoicedataSelection - data selectionDataChoice-s levels.public java.util.List getAllDateTimes()
DataChoice-s times.getAllDateTimes in class DataChoiceDataChoice-s times.public java.util.List getSelectedDateTimes()
DataChoice-s selected timesgetSelectedDateTimes in class DataChoiceDataChoice-s
selected timesprotected void findDataCategories()
public void setChoices(java.util.List l)
l - The list of choicespublic java.util.List getChoices()
protected void flushCache()
protected void addDataChangeListeners(DataChoice dataChoice)
dataChoice - data choicepublic void addDataChangeListener(DataChangeListener listener)
addDataChangeListener in class DataChoicelistener - The listener to add.public void removeDataChangeListener(DataChangeListener listener)
removeDataChangeListener in class DataChoicelistener - The listener to remove.public int hashCode()
hashCode in class DataChoicepublic boolean basicallyEquals(DataChoice that)
basicallyEquals in class DataChoicethat - The object ot check for equalitypublic boolean equals(java.lang.Object o)
equals in class DataChoiceo - Obejct to compare to.