|
||||||||||
| 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.ListDataChoice
public class ListDataChoice
A subclass of DataChoice for derived quantities.
| Field Summary |
|---|
| 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 | |
|---|---|
ListDataChoice()
Dummy param-less constructor so we can be recreated thru reflection. |
|
ListDataChoice(ListDataChoice other)
The cloning ctor. |
|
ListDataChoice(Object id,
String name,
String description,
List categories)
The regular constructor from a DerivedDataDescriptor
TODO: Right now the children of a ListDataChoice do not refererence
their parent. |
|
ListDataChoice(String name,
List children)
ctor |
|
| Method Summary | |
|---|---|
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 String |
convertLabel(String label,
List dataChoices)
Iterate through the children DataChoice-s. |
boolean |
equals(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. |
List |
getAllDateTimes()
Get the union of all of the children DataChoice-s times. |
List |
getAllLevels(DataSelection dataSelection)
Get the union of all of the children DataChoice-s levels. |
List |
getChoices()
Get the children choices. |
protected Data |
getData(DataCategory category,
DataSelection dataSelection,
Hashtable requestProperties)
Get the data |
protected Object[] |
getDataList(DataCategory category,
DataSelection dataSelection,
Hashtable requestProperties)
Get the array of data from the children data choices |
void |
getDataSources(List dataSources)
Add to the given list all the data sources |
void |
getFinalDataChoices(List finalDataChoices)
Add to the given list all final data choices (i.e., the leafs of the datachoice tree) |
String |
getFullDescription()
Get the full Description for this DataChoice. |
String |
getIndexedName(int index)
Return the name of the index'th child DataChoice. |
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(Hashtable properties)
This gets called after the data choice has been unpersisted |
void |
removeDataChangeListener(DataChangeListener listener)
Remove the data change listener. |
void |
setChildrenDataChoices(List dataChoices)
set the children |
void |
setChoices(List l)
Set the child DataChoices. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ListDataChoice()
public ListDataChoice(ListDataChoice other)
other - The object to instantiate from.
public ListDataChoice(Object id,
String name,
String description,
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 - categories
public ListDataChoice(String name,
List children)
name - namechildren - The children data choices| Method Detail |
|---|
public void setChildrenDataChoices(List dataChoices)
dataChoices - the children
protected Data getData(DataCategory category,
DataSelection dataSelection,
Hashtable requestProperties)
throws VisADException,
RemoteException,
DataCancelException
getData in class DataChoicecategory - categorydataSelection - selectionrequestProperties - properties
DataCancelException - On badness
RemoteException - On badness
VisADException - On badness
protected Object[] getDataList(DataCategory category,
DataSelection dataSelection,
Hashtable requestProperties)
throws VisADException,
RemoteException,
DataCancelException
category - categorydataSelection - selectionrequestProperties - properties
DataCancelException - On badness
RemoteException - On badness
VisADException - On badnesspublic DataChoice cloneMe()
cloneMe in class DataChoicepublic 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(Hashtable properties)
initAfterUnPersistence in class DataChoiceproperties - Propertiespublic void getFinalDataChoices(List finalDataChoices)
getFinalDataChoices in class DataChoicefinalDataChoices - The list to add topublic void getDataSources(List dataSources)
getDataSources in class DataChoicedataSources - List to put data sources intoprotected void inherit(DataCategory src)
src - The DataCategory to look at.
protected String convertLabel(String label,
List dataChoices)
label - The inital (possibly macro containing) label.dataChoices - The list of child DataChoices.
public String getFullDescription()
getFullDescription in class DataChoicepublic List getAllLevels(DataSelection dataSelection)
DataChoice-s levels.
getAllLevels in class DataChoicedataSelection - data selection
DataChoice-s levels.public List getAllDateTimes()
DataChoice-s times.
getAllDateTimes in class DataChoiceDataChoice-s times.public List getSelectedDateTimes()
DataChoice-s selected times
getSelectedDateTimes in class DataChoiceDataChoice-s
selected timesprotected void findDataCategories()
public void setChoices(List l)
l - The list of choicespublic 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 equality
public boolean equals(Object o)
equals in class DataChoiceo - Obejct to compare to.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||