|
||||||||||
| 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.DirectDataChoice
ucar.unidata.data.CompositeDataChoice
public class CompositeDataChoice
A class for compositing data choices. This is useful for having
a DataChoice with associated categories and child choices
for the individual components.
| Field Summary |
|---|
| Fields inherited from class ucar.unidata.data.DirectDataChoice |
|---|
dataSource, PROP_WRITEDATASOURCE |
| 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 | |
|---|---|
CompositeDataChoice()
Create a CompositeDataChoices with no associated child choices |
|
CompositeDataChoice(CompositeDataChoice other)
Create a CompositeDataChoices from another composite. |
|
CompositeDataChoice(DataSource dataSource,
Object id,
String description,
List categories)
Create a composite data choice for the associated DataSource given the other parameters. |
|
CompositeDataChoice(DataSource dataSource,
Object id,
String name,
String description,
List categories)
Create a composite data choice for the associated DataSource given the other parameters. |
|
CompositeDataChoice(DataSource dataSource,
Object id,
String name,
String description,
List categories,
Hashtable properties)
Create a composite data choice for the associated DataSource given the other parameters. |
|
| Method Summary | |
|---|---|
void |
addDataChoice(DataChoice c)
Add a DataChoice to the composite |
DataChoice |
cloneMe()
Method for cloning this choice. |
void |
expandIfNeeded()
Gets called by the GUI to incrementally add children if needed |
List |
getAllDateTimes()
Override the superclass method for this. |
List |
getAllLevels(DataSelection dataSelection)
Get all the levels associated with this choice |
List |
getDataChoices()
Get the list of child data choices. |
void |
getFinalDataChoices(List finalDataChoices)
Add to the given list all final data choices (i.e., the leafs of the datachoice tree) |
int |
getNumChildren()
Get the number of child DataChoices |
List |
getSelectedDateTimes()
Override the superclass method for this. |
boolean |
getUseDataSourceToFindTimes()
Get the UseDataSourceToFindTimes property. |
void |
initAfterUnPersistence(Hashtable properties)
This gets called after the data choice has been unpersisted |
void |
removeAllDataChoices()
Remove the current children |
void |
removeDataChoice(DataChoice c)
Remove a DataChoice from the composite |
void |
replaceDataChoice(DataChoice oldDataChoice,
DataChoice newDataChoice)
Replace the given child with the given chold |
void |
replaceDataChoices(List newChoices)
Remove the current children and add the new ones |
void |
setDataChoices(List l)
Set the list of child data choices for this composite |
void |
setUseDataSourceToFindTimes(boolean value)
Set the UseDataSourceToFindTimes property. |
| Methods inherited from class ucar.unidata.data.DirectDataChoice |
|---|
addDataChangeListener, basicallyEquals, equals, getData, getDataSource, getDataSources, getFullDescription, hashCode, removeDataChangeListener, setDataSource |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CompositeDataChoice()
public CompositeDataChoice(CompositeDataChoice other)
DataChoices from other.
other - other composite
public CompositeDataChoice(DataSource dataSource,
Object id,
String description,
List categories)
DataSource given the other parameters.
dataSource - source of the dataid - id of this choicedescription - description for this choicecategories - choice categories
public CompositeDataChoice(DataSource dataSource,
Object id,
String name,
String description,
List categories)
DataSource given the other parameters.
dataSource - source of the dataid - id of this choicename - name of this choicedescription - description for this choicecategories - choice categories
public CompositeDataChoice(DataSource dataSource,
Object id,
String name,
String description,
List categories,
Hashtable properties)
DataSource given the other parameters.
dataSource - source of the dataid - id of this choicename - name of this choicedescription - description for this choicecategories - choice categoriesproperties - miscellaneous properties for this choice| Method Detail |
|---|
public void expandIfNeeded()
public DataChoice cloneMe()
cloneMe in class DirectDataChoicepublic void initAfterUnPersistence(Hashtable properties)
initAfterUnPersistence in class DirectDataChoiceproperties - Propertiespublic void getFinalDataChoices(List finalDataChoices)
getFinalDataChoices in class DirectDataChoicefinalDataChoices - The list to add topublic int getNumChildren()
DataChoices
public List getAllLevels(DataSelection dataSelection)
getAllLevels in class DirectDataChoicedataSelection - data selection
public List getAllDateTimes()
getAllDateTimes in class DirectDataChoicepublic List getSelectedDateTimes()
getSelectedDateTimes in class DirectDataChoicepublic void addDataChoice(DataChoice c)
DataChoice to the composite
c - choice to add
public void replaceDataChoice(DataChoice oldDataChoice,
DataChoice newDataChoice)
oldDataChoice - old onenewDataChoice - new onepublic void replaceDataChoices(List newChoices)
newChoices - New children data choicespublic void removeAllDataChoices()
public void removeDataChoice(DataChoice c)
DataChoice from the composite
c - choice to removepublic List getDataChoices()
public void setDataChoices(List l)
l - list of choicespublic void setUseDataSourceToFindTimes(boolean value)
value - The new value for UseDataSourceToFindTimespublic boolean getUseDataSourceToFindTimes()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||