rjw.flex.settings
Class Setting
java.lang.Object
|
+--rjw.flex.settings.Setting
- public class Setting
- extends java.lang.Object
A Settings definition. The setting is always added to a file
(the settings file) and if specified, the setting is also
editable thru the SettingsView.
- Since:
- 1.3
- Version:
- DC0.50
- Author:
- Robert-Jan van der Waals
Constructor Summary |
Setting(int iDataType,
java.lang.String sKey,
java.lang.Object oValue,
javax.swing.JComponent component,
java.lang.String helpText,
java.lang.String labelText,
boolean displayLabel,
boolean showToUser)
Creates a setting |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Setting
public Setting(int iDataType,
java.lang.String sKey,
java.lang.Object oValue,
javax.swing.JComponent component,
java.lang.String helpText,
java.lang.String labelText,
boolean displayLabel,
boolean showToUser)
- Creates a setting
- Parameters:
iDataType
- the data type of the valuesKey
- a unique identifier, also used for the settings fileoValue
- the default value for thsi settingcomponent
- the UI componentshowToUser
- is the setting meant to be display in the panel ?
getLabelText
public java.lang.String getLabelText()
displayLabel
public boolean displayLabel()
showToUser
public boolean showToUser()
getSettingsGroup
public int getSettingsGroup()
getSettingsGroupParent
public int getSettingsGroupParent()
getUIComponent
public javax.swing.JComponent getUIComponent()
getDataType
public int getDataType()
getKey
public java.lang.String getKey()
getValue
public java.lang.Object getValue()
getHelpText
public java.lang.String getHelpText()
getValueAsString
public java.lang.String getValueAsString()
setValue
public void setValue(java.lang.Object oValue)
setStringAsValue
public void setStringAsValue(java.lang.String sValue)