public class DisplaySetting
extends java.lang.Object
Constructor and Description |
---|
DisplaySetting()
ctor
|
DisplaySetting(java.lang.String name,
java.util.List<PropertyValue> propertyValues)
ctor
|
Modifier and Type | Method and Description |
---|---|
boolean |
applicableTo(ControlDescriptor cd)
Is this displaysetting applicable to the given cd
|
boolean |
changeName(IntegratedDataViewer idv,
javax.swing.JDialog dialog)
Change the name of this display setting
|
static java.lang.String |
cleanName(java.lang.String name)
Clean up the name
|
void |
clearOnlyApplicableTo()
clear out the applicable to controls map
|
static void |
doSave(IntegratedDataViewer idv,
javax.swing.JDialog dialog,
java.util.List<PropertyValue> propList,
DisplayControlImpl display)
Save the display settings
|
boolean |
equals(java.lang.Object o)
is equals
|
java.util.Hashtable |
getApplicableToControls()
Get the ApplicableToControls property.
|
java.lang.String |
getCategory()
get the category
|
boolean |
getIsLocal()
Get the IsLocal property.
|
java.lang.String |
getName()
Get the Name property.
|
java.lang.String |
getNameWithoutCategory()
Get just the name without the category prefix
|
java.util.List<PropertyValue> |
getPropertyValues()
Get the PropertyValues property.
|
void |
setApplicableToControls(java.util.Hashtable value)
Set the ApplicableToControls property.
|
void |
setIsLocal(boolean value)
Set the IsLocal property.
|
void |
setName(java.lang.String value)
Set the Name property.
|
void |
setOnlyApplicableTo(ControlDescriptor cd)
set that this setting is only applicable to the given control
|
void |
setPropertyValues(java.util.List<PropertyValue> value)
Set the PropertyValues property.
|
java.lang.String |
toString()
to string
|
public DisplaySetting()
public DisplaySetting(java.lang.String name, java.util.List<PropertyValue> propertyValues)
name
- The namepropertyValues
- The valuespublic boolean applicableTo(ControlDescriptor cd)
cd
- The control descriptorpublic boolean changeName(IntegratedDataViewer idv, javax.swing.JDialog dialog)
idv
- the idvdialog
- the dialogpublic static void doSave(IntegratedDataViewer idv, javax.swing.JDialog dialog, java.util.List<PropertyValue> propList, DisplayControlImpl display)
idv
- the idvdialog
- the dialogpropList
- List of propertiesdisplay
- The displaypublic void setName(java.lang.String value)
value
- The new value for Namepublic java.lang.String getCategory()
public java.lang.String getNameWithoutCategory()
public static java.lang.String cleanName(java.lang.String name)
name
- the namepublic java.lang.String getName()
public void setPropertyValues(java.util.List<PropertyValue> value)
value
- The new value for PropertyValuespublic java.util.List<PropertyValue> getPropertyValues()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- topublic void setIsLocal(boolean value)
value
- The new value for IsLocalpublic boolean getIsLocal()
public java.lang.String toString()
toString
in class java.lang.Object
public void clearOnlyApplicableTo()
public void setOnlyApplicableTo(ControlDescriptor cd)
cd
- the controlpublic void setApplicableToControls(java.util.Hashtable value)
value
- The new value for ApplicableToControlspublic java.util.Hashtable getApplicableToControls()