Package ucar.unidata.idv.control
Class DisplaySetting
java.lang.Object
ucar.unidata.idv.control.DisplaySetting
- Version:
- $Revision: 1.3 $
- Author:
- Jeff McWhirter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIs this displaysetting applicable to the given cdbooleanchangeName(IntegratedDataViewer idv, JDialog dialog) Change the name of this display settingstatic StringClean up the namevoidclear out the applicable to controls mapstatic voiddoSave(IntegratedDataViewer idv, JDialog dialog, List<PropertyValue> propList, DisplayControlImpl display) Save the display settingsbooleanis equalsGet the ApplicableToControls property.get the categorybooleanGet the IsLocal property.getName()Get the Name property.Get just the name without the category prefixGet the PropertyValues property.voidsetApplicableToControls(Hashtable value) Set the ApplicableToControls property.voidsetIsLocal(boolean value) Set the IsLocal property.voidSet the Name property.voidset that this setting is only applicable to the given controlvoidsetPropertyValues(List<PropertyValue> value) Set the PropertyValues property.toString()to string
-
Constructor Details
-
DisplaySetting
public DisplaySetting()ctor -
DisplaySetting
ctor- Parameters:
name- The namepropertyValues- The values
-
-
Method Details
-
applicableTo
Is this displaysetting applicable to the given cd- Parameters:
cd- The control descriptor- Returns:
- is applicable
-
changeName
Change the name of this display setting- Parameters:
idv- the idvdialog- the dialog- Returns:
- ok
-
doSave
public static void doSave(IntegratedDataViewer idv, JDialog dialog, List<PropertyValue> propList, DisplayControlImpl display) Save the display settings- Parameters:
idv- the idvdialog- the dialogpropList- List of propertiesdisplay- The display
-
setName
Set the Name property.- Parameters:
value- The new value for Name
-
getCategory
get the category- Returns:
- the category
-
getNameWithoutCategory
Get just the name without the category prefix- Returns:
- name
-
cleanName
Clean up the name- Parameters:
name- the name- Returns:
- cleaned name
-
getName
Get the Name property.- Returns:
- The Name
-
setPropertyValues
Set the PropertyValues property.- Parameters:
value- The new value for PropertyValues
-
getPropertyValues
Get the PropertyValues property.- Returns:
- The PropertyValues
-
equals
is equals -
setIsLocal
public void setIsLocal(boolean value) Set the IsLocal property.- Parameters:
value- The new value for IsLocal
-
getIsLocal
public boolean getIsLocal()Get the IsLocal property.- Returns:
- The IsLocal
-
toString
to string -
clearOnlyApplicableTo
public void clearOnlyApplicableTo()clear out the applicable to controls map -
setOnlyApplicableTo
set that this setting is only applicable to the given control- Parameters:
cd- the control
-
setApplicableToControls
Set the ApplicableToControls property.- Parameters:
value- The new value for ApplicableToControls
-
getApplicableToControls
Get the ApplicableToControls property.- Returns:
- The ApplicableToControls
-