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 TypeMethodDescriptionvoid
addDataChangeListener
(DataChangeListener listener) Add the data change listener.cloneMe()
Override superclass method for creating a clone.boolean
See if the object in question is equal to this UrlDataChoice.protected Data
getData
(DataCategory category, DataSelection dataSelection, Hashtable requestProperties) Implementation of the getData method.getUrl()
Get the URL for this choice.int
hashCode()
Return the hash code for this UrlDataChoice.void
removeDataChangeListener
(DataChangeListener listener) Remove the data change listener.void
Set 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:
cloneMe
in 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:
getData
in 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:
hashCode
in classDataChoice
- Returns:
- the hash code for this UrlDataChoice
-
equals
See if the object in question is equal to this UrlDataChoice.- Overrides:
equals
in classDataChoice
- Parameters:
o
- Object in question- Returns:
- true if they are equal
-
addDataChangeListener
Add the data change listener. Does nothing.- Specified by:
addDataChangeListener
in classDataChoice
- Parameters:
listener
- listener to add
-
removeDataChangeListener
Remove the data change listener. Does nothing.- Specified by:
removeDataChangeListener
in classDataChoice
- Parameters:
listener
- listener to remove
-