Package ucar.unidata.data
Class UrlDataChoice
java.lang.Object
ucar.unidata.data.DataChoice
ucar.unidata.data.UrlDataChoice
A DataChoice for a URL
- Version:
- $Revision: 1.15 $
- Author:
- IDV development team
-
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
ConstructorsConstructorDescriptionDefault Constructor; does nothingUrlDataChoice(String url) Create a UrlDataChoice from the URLUrlDataChoice(String url, String desc) Create a UrlDataChoice.UrlDataChoice(UrlDataChoice other) Create a UrlDataChoice from another. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDataChangeListener(DataChangeListener listener) Add the data change listener.cloneMe()Override superclass method for creating a clone.booleanSee if the object in question is equal to this UrlDataChoice.protected DatagetData(DataCategory category, DataSelection dataSelection, Hashtable requestProperties) Implementation of the getData method.getUrl()Get the URL for this choice.inthashCode()Return the hash code for this UrlDataChoice.voidremoveDataChangeListener(DataChangeListener listener) Remove the data change listener.voidSet the URL for this choice.Methods inherited from class ucar.unidata.data.DataChoice
addCategory, addCurrentName, addParamNameToCategories, basicallyEquals, cloneDataChoices, createClone, 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, initAfterUnPersistence, isEndUserFormula, mergeRequestProperties, setCategories, setDataCategories, setDataSelection, setDescription, setFixedRequestProperties, setId, setLevelSelection, setName, setObjectProperty, setParent, setProperties, setProperty, setProperty, setTimeSelection, toString
-
Constructor Details
-
UrlDataChoice
public UrlDataChoice()Default Constructor; does nothing -
UrlDataChoice
Create a UrlDataChoice from the URL- Parameters:
url- URL for this choice
-
UrlDataChoice
Create a UrlDataChoice.- Parameters:
url- URL (choice ID)desc- DataChoice description
-
UrlDataChoice
Create a UrlDataChoice from another.- Parameters:
other- other UrlDataChoice
-
-
Method Details
-
cloneMe
Override superclass method for creating a clone.- Specified by:
cloneMein classDataChoice- Returns:
- cloned choice
-
setUrl
Set the URL for this choice. Used by XML encoding- Parameters:
value- URL for choice
-
getUrl
Get the URL for this choice. Used by XML encoding- Returns:
- URL for choice
-
getData
protected Data getData(DataCategory category, DataSelection dataSelection, Hashtable requestProperties) throws VisADException, RemoteException, DataCancelException Implementation of the getData method.- Specified by:
getDatain classDataChoice- Parameters:
category- the data categorydataSelection- the selection propertiesrequestProperties- special request properties- Returns:
- the data based on the input parameters
- Throws:
DataCancelException- if the request was canceledRemoteException- Java RMI problemVisADException- problem creating the Data object
-
hashCode
public int hashCode()Return the hash code for this UrlDataChoice.- Overrides:
hashCodein classDataChoice- Returns:
- the hash code for this UrlDataChoice
-
equals
See if the object in question is equal to this UrlDataChoice.- Overrides:
equalsin classDataChoice- Parameters:
o- Object in question- Returns:
- true if they are equal
-
addDataChangeListener
Add the data change listener. Does nothing.- Specified by:
addDataChangeListenerin classDataChoice- Parameters:
listener- listener to add
-
removeDataChangeListener
Remove the data change listener. Does nothing.- Specified by:
removeDataChangeListenerin classDataChoice- Parameters:
listener- listener to remove
-