edu.wisc.ssec.mcidasv.data
Class ComboDataChoice

java.lang.Object
  extended by ucar.unidata.data.DataChoice
      extended by edu.wisc.ssec.mcidasv.data.ComboDataChoice

public class ComboDataChoice
extends DataChoice

A data choice that simply holds a reference to a visad.Data object

Version:
$Revision$
Author:
IDV development team

Field Summary
private static List<DataCategory> CATEGORIES
           
private  Data data
          The data
 
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
ComboDataChoice()
          The bean constructor.
ComboDataChoice(ComboDataChoice other)
          Create a new DataChoice, using the state of the given DataChoice to initialize the new object.
ComboDataChoice(String name, List categories, Hashtable props)
          Create a new DataChoice.
ComboDataChoice(String id, String name, Hashtable props, Data data)
           
 
Method Summary
 void addDataChangeListener(DataChangeListener listener)
          add listener.
 DataChoice cloneMe()
          Clone me
 Data getData()
           
protected  Data getData(DataCategory category, DataSelection dataSelection, Hashtable requestProperties)
          Return the Data object that this DataChoice represents.
 void removeDataChangeListener(DataChangeListener listener)
          Remove the DataChangeListener.
 void setData(Data data)
           
 
Methods inherited from class ucar.unidata.data.DataChoice
addCategory, addCurrentName, addParamNameToCategories, basicallyEquals, cloneDataChoices, createClone, equals, getAllDateTimes, getAllLevels, getAllLevels, getCategories, getCurrentNames, getData, getData, getDataCategories, getDataCategories, getDataSelection, getDataSources, getDescription, getDisplayCategory, getFinalDataChoices, getFixedRequestProperties, getForUser, getFullDescription, getId, getIndexedName, getName, getParent, getProperties, getProperty, getProperty, getProperty, getSelectedDateTimes, getStringId, hashCode, initAfterUnPersistence, isEndUserFormula, mergeRequestProperties, setCategories, setDataCategories, setDataSelection, setDescription, setFixedRequestProperties, setId, setLevelSelection, setName, setObjectProperty, setParent, setProperties, setProperty, setProperty, setTimeSelection, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

CATEGORIES

private static final List<DataCategory> CATEGORIES

data

private Data data
The data

Constructor Detail

ComboDataChoice

public ComboDataChoice()
The bean constructor. We need this for xml decoding.


ComboDataChoice

public ComboDataChoice(ComboDataChoice other)
Create a new DataChoice, using the state of the given DataChoice to initialize the new object.

Parameters:
other - The other data choice.

ComboDataChoice

public ComboDataChoice(String name,
                       List categories,
                       Hashtable props)
Create a new DataChoice.

Parameters:
name - The short name of this choice.
data - The data

ComboDataChoice

public ComboDataChoice(String id,
                       String name,
                       Hashtable props,
                       Data data)
Method Detail

cloneMe

public DataChoice cloneMe()
Clone me

Specified by:
cloneMe in class DataChoice
Returns:
my clone

setData

public void setData(Data data)

getData

protected Data getData(DataCategory category,
                       DataSelection dataSelection,
                       Hashtable requestProperties)
                throws VisADException,
                       RemoteException,
                       DataCancelException
Return the Data object that this DataChoice represents.

Specified by:
getData in class DataChoice
Parameters:
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 properties
Returns:
The data.
Throws:
DataCancelException - if the request to get data is canceled
RemoteException - problem accessing remote data
VisADException - problem creating the Data object

getData

public Data getData()

addDataChangeListener

public void addDataChangeListener(DataChangeListener listener)
add listener. This is a noop

Specified by:
addDataChangeListener in class DataChoice
Parameters:
listener - listener

removeDataChangeListener

public void removeDataChangeListener(DataChangeListener listener)
Remove the DataChangeListener.

Specified by:
removeDataChangeListener in class DataChoice
Parameters:
listener - The DataChangeListener to remove.