net.sf.ext.jflexsett.settings
Class Setting
java.lang.Object
net.sf.ext.jflexsett.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.4
- Version:
- 1.9
- Author:
- Robert Jan van der Waals
Constructor Summary |
Setting(int iDataType,
java.lang.String sKey,
java.lang.Object oValue,
int componentType,
java.lang.String helpText,
java.lang.String labelText,
boolean displayLabel,
boolean showToUser)
Creates a setting |
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 |
clone, equals, finalize, 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 componenthelptext
- helptext for this setting, used as tooltiplabeltext
- the display text for the labeldisplaylabel
- show the label on screen ?showToUser
- is the setting meant to be display in the panel ?
Setting
public Setting(int iDataType,
java.lang.String sKey,
java.lang.Object oValue,
int componentType,
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 settingcomponentType
- the UI componenthelptext
- helptext for this setting, used as tooltiplabeltext
- the display text for the labeldisplaylabel
- show the label on screen ?showToUser
- 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)