|
||||||||||
| 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
public class DirectDataChoice
A subclass of DataChoice for supporting a leaf choice. This choice maps directly to data.
| Field Summary | |
|---|---|
protected DataSource |
dataSource
The data source |
static String |
PROP_WRITEDATASOURCE
This is the XmlEncoder encoding property we use to determine if the datasource should be written out |
| 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 | |
|---|---|
DirectDataChoice()
Default bean constructor; does nothing. |
|
DirectDataChoice(DataSource dataSource,
Object id,
String name,
String description,
List categories)
Create a new DirectDataChoice. |
|
DirectDataChoice(DataSource dataSource,
Object id,
String name,
String description,
List categories,
DataSelection dataSelection)
Create a new DirectDataChoice. |
|
DirectDataChoice(DataSource dataSource,
Object id,
String name,
String description,
List categories,
DataSelection dataSelection,
Hashtable properties)
Create a new DirectDataChoice. |
|
DirectDataChoice(DataSource dataSource,
Object id,
String name,
String description,
List categories,
Hashtable properties)
Create a new DirectDataChoice. |
|
DirectDataChoice(DirectDataChoice other)
Copy constructor. |
|
| Method Summary | |
|---|---|
void |
addDataChangeListener(DataChangeListener listener)
Add the data change listener |
boolean |
basicallyEquals(DataChoice that)
This just checks for basic equality. |
DataChoice |
cloneMe()
Method for cloning. |
boolean |
equals(Object o)
Check for equality. |
List |
getAllDateTimes()
Get all the times associated with this choice. |
List |
getAllLevels(DataSelection dataSelection)
Get all the levels associated with this choice |
protected Data |
getData(DataCategory category,
DataSelection dataSelection,
Hashtable requestProperties)
Get the data that this choice represents. |
DataSource |
getDataSource()
Get the associated DataSource. |
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. |
List |
getSelectedDateTimes()
Get all the selected times associated with this choice. |
int |
hashCode()
Return the hashcode for this DirectDataChoice |
void |
initAfterUnPersistence(Hashtable properties)
This gets called after the data choice has been unpersisted |
void |
removeDataChangeListener(DataChangeListener listener)
Remove the data change listener |
void |
setDataSource(DataSource s)
Set the associated DataSource. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String PROP_WRITEDATASOURCE
protected DataSource dataSource
| Constructor Detail |
|---|
public DirectDataChoice()
public DirectDataChoice(DataSource dataSource,
Object id,
String name,
String description,
List categories,
Hashtable properties)
dataSource - The source of the dataid - The identifying object.name - The short name of this choice.description - The long description of this choice.categories - List of DataCategorys.properties - The properties for this data choice (may be null).
public DirectDataChoice(DataSource dataSource,
Object id,
String name,
String description,
List categories)
dataSource - The source of the dataid - The identifying object.name - The short name of this choice.description - The long description of this choice.categories - List of DataCategorys.
public DirectDataChoice(DataSource dataSource,
Object id,
String name,
String description,
List categories,
DataSelection dataSelection)
dataSource - The source of the dataid - The identifying object.name - The short name of this choice.description - The long description of this choice.categories - List of DataCategorys.dataSelection - The subsetting criteria
public DirectDataChoice(DataSource dataSource,
Object id,
String name,
String description,
List categories,
DataSelection dataSelection,
Hashtable properties)
dataSource - The source of the dataid - The identifying object.name - The short name of this choice.description - The long description of this choice.categories - List of DataCategorys.dataSelection - The subsetting criteriaproperties - The properties for this data choice (may be null).public DirectDataChoice(DirectDataChoice other)
other - other DirectDataChoice to get state from| Method Detail |
|---|
public DataChoice cloneMe()
cloneMe in class DataChoicepublic void getFinalDataChoices(List finalDataChoices)
getFinalDataChoices in class DataChoicefinalDataChoices - The list to add topublic String getFullDescription()
getFullDescription in class DataChoicepublic void getDataSources(List dataSources)
getDataSources in class DataChoicedataSources - List to put data sources intopublic List getAllLevels(DataSelection dataSelection)
getAllLevels in class DataChoicedataSelection - data selection
public List getAllDateTimes()
getAllDateTimes in class DataChoicepublic List getSelectedDateTimes()
getSelectedDateTimes in class DataChoicepublic void initAfterUnPersistence(Hashtable properties)
initAfterUnPersistence in class DataChoiceproperties - Propertiespublic DataSource getDataSource()
DataSource. Mostly used by XML persistence.
public void setDataSource(DataSource s)
DataSource. Mostly used by XML persistence.
s - the DataSource.
protected Data getData(DataCategory category,
DataSelection dataSelection,
Hashtable requestProperties)
throws VisADException,
RemoteException,
DataCancelException
getData in class DataChoicecategory - The DataCategory used to subset this
call (usually not used but placed in here
just in case it is needed.)dataSelection - Allows one to subset the data request (e.g.,
asking for a smaller set of times, etc.)requestProperties - Extra selection properties
DataCancelException - if the request to get data is canceled
RemoteException - problem accessing remote data
VisADException - problem creating the Data objectpublic int hashCode()
hashCode in class DataChoicepublic boolean equals(Object o)
equals in class DataChoiceo - Object to check.
o is equivalentpublic boolean basicallyEquals(DataChoice that)
basicallyEquals in class DataChoicethat - The object ot check for equality
public void addDataChangeListener(DataChangeListener listener)
addDataChangeListener in class DataChoicelistener - listener to addpublic void removeDataChangeListener(DataChangeListener listener)
removeDataChangeListener in class DataChoicelistener - listener to remove
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||