public class DirectDataChoice extends DataChoice
Modifier and Type | Field and Description |
---|---|
protected DataSource |
dataSource
The data source
|
static java.lang.String |
PROP_WRITEDATASOURCE
This is the XmlEncoder encoding property we use to
determine if the datasource should be written out
|
description, id, name, NULL_DATASELECTION, NULL_PROPERTIES, NULL_REQUESTPROPERTIES, parent, PROP_ICON, PROP_REQUESTER, properties
Constructor and Description |
---|
DirectDataChoice()
Default bean constructor; does nothing.
|
DirectDataChoice(DataSource dataSource,
java.lang.Object id,
java.lang.String name,
java.lang.String description,
java.util.List categories)
Create a new DirectDataChoice.
|
DirectDataChoice(DataSource dataSource,
java.lang.Object id,
java.lang.String name,
java.lang.String description,
java.util.List categories,
DataSelection dataSelection)
Create a new DirectDataChoice.
|
DirectDataChoice(DataSource dataSource,
java.lang.Object id,
java.lang.String name,
java.lang.String description,
java.util.List categories,
DataSelection dataSelection,
java.util.Hashtable properties)
Create a new DirectDataChoice.
|
DirectDataChoice(DataSource dataSource,
java.lang.Object id,
java.lang.String name,
java.lang.String description,
java.util.List categories,
java.util.Hashtable properties)
Create a new DirectDataChoice.
|
DirectDataChoice(DirectDataChoice other)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
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(java.lang.Object o)
Check for equality.
|
java.util.List |
getAllDateTimes()
Get all the times associated with this choice.
|
java.util.List |
getAllLevels(DataSelection dataSelection)
Get all the levels associated with this choice
|
protected visad.Data |
getData(DataCategory category,
DataSelection dataSelection,
java.util.Hashtable requestProperties)
Get the data that this choice represents.
|
DataSource |
getDataSource()
Get the associated
DataSource . |
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.util.List |
getSelectedDateTimes()
Get all the selected times associated with this choice.
|
int |
hashCode()
Return the hashcode for this DirectDataChoice
|
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 |
setDataSource(DataSource s)
Set the associated
DataSource . |
addCategory, addCurrentName, addParamNameToCategories, cloneDataChoices, createClone, getAllLevels, getCategories, getCurrentNames, getData, getData, getDataCategories, getDataCategories, getDataSelection, getDescription, getDisplayCategory, getFixedRequestProperties, getForUser, getId, getIndexedName, getName, getParent, getProperties, getProperty, getProperty, getProperty, getStringId, isEndUserFormula, mergeRequestProperties, setCategories, setDataCategories, setDataSelection, setDescription, setFixedRequestProperties, setId, setLevelSelection, setName, setObjectProperty, setParent, setProperties, setProperty, setProperty, setTimeSelection, toString
public static final java.lang.String PROP_WRITEDATASOURCE
protected DataSource dataSource
public DirectDataChoice()
public DirectDataChoice(DataSource dataSource, java.lang.Object id, java.lang.String name, java.lang.String description, java.util.List categories, java.util.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 DataCategory
s.properties
- The properties for this data choice (may be null).public DirectDataChoice(DataSource dataSource, java.lang.Object id, java.lang.String name, java.lang.String description, java.util.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 DataCategory
s.public DirectDataChoice(DataSource dataSource, java.lang.Object id, java.lang.String name, java.lang.String description, java.util.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 DataCategory
s.dataSelection
- The subsetting criteriapublic DirectDataChoice(DataSource dataSource, java.lang.Object id, java.lang.String name, java.lang.String description, java.util.List categories, DataSelection dataSelection, java.util.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 DataCategory
s.dataSelection
- The subsetting criteriaproperties
- The properties for this data choice (may be null).public DirectDataChoice(DirectDataChoice other)
other
- other DirectDataChoice to get state frompublic DataChoice cloneMe()
cloneMe
in class DataChoice
public void getFinalDataChoices(java.util.List finalDataChoices)
getFinalDataChoices
in class DataChoice
finalDataChoices
- The list to add topublic java.lang.String getFullDescription()
getFullDescription
in class DataChoice
public void getDataSources(java.util.List dataSources)
getDataSources
in class DataChoice
dataSources
- List to put data sources intopublic java.util.List getAllLevels(DataSelection dataSelection)
getAllLevels
in class DataChoice
dataSelection
- data selectionpublic java.util.List getAllDateTimes()
getAllDateTimes
in class DataChoice
public java.util.List getSelectedDateTimes()
getSelectedDateTimes
in class DataChoice
public void initAfterUnPersistence(java.util.Hashtable properties)
initAfterUnPersistence
in class DataChoice
properties
- Propertiespublic DataSource getDataSource()
DataSource
. Mostly used by XML persistence.public void setDataSource(DataSource s)
DataSource
. Mostly used by XML persistence.s
- the DataSource.protected visad.Data getData(DataCategory category, DataSelection dataSelection, java.util.Hashtable requestProperties) throws visad.VisADException, java.rmi.RemoteException, DataCancelException
getData
in class DataChoice
category
- 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 propertiesDataCancelException
- if the request to get data is canceledjava.rmi.RemoteException
- problem accessing remote datavisad.VisADException
- problem creating the Data objectpublic int hashCode()
hashCode
in class DataChoice
public boolean equals(java.lang.Object o)
equals
in class DataChoice
o
- Object to check.o
is equivalentpublic boolean basicallyEquals(DataChoice that)
basicallyEquals
in class DataChoice
that
- The object ot check for equalitypublic void addDataChangeListener(DataChangeListener listener)
addDataChangeListener
in class DataChoice
listener
- listener to addpublic void removeDataChangeListener(DataChangeListener listener)
removeDataChangeListener
in class DataChoice
listener
- listener to remove