|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.ctdp.rfdynhud.properties.Property
net.ctdp.rfdynhud.properties.BorderProperty
public class BorderProperty
The BorderProperty
serves for customizing a border.
Field Summary | |
---|---|
static StringMapping |
DEFAULT_BORDER
|
Constructor Summary | |
---|---|
BorderProperty(java.lang.String name,
java.lang.String defaultValue)
|
|
BorderProperty(java.lang.String name,
java.lang.String defaultValue,
boolean readonly)
|
|
BorderProperty(java.lang.String name,
java.lang.String defaultValue,
IntProperty paddingTop,
IntProperty paddingLeft,
IntProperty paddingRight,
IntProperty paddingBottom)
|
|
BorderProperty(java.lang.String name,
java.lang.String nameForDisplay,
java.lang.String defaultValue)
|
|
BorderProperty(java.lang.String name,
java.lang.String nameForDisplay,
java.lang.String defaultValue,
boolean readonly)
|
|
BorderProperty(java.lang.String name,
java.lang.String nameForDisplay,
java.lang.String defaultValue,
boolean readonly,
IntProperty paddingTop,
IntProperty paddingLeft,
IntProperty paddingRight,
IntProperty paddingBottom)
|
Method Summary | |
---|---|
BorderWrapper |
getBorder()
Gets the selected border. |
java.lang.String |
getBorderAlias()
Gets the property's current value. |
static java.lang.String |
getDefaultBorderValue(java.lang.String name)
|
java.lang.String |
getDefaultValue()
Gets the default (initial) value fo this property. |
java.lang.String |
getValue()
Gets the current value fo this property. |
java.lang.Object |
getValueForConfigurationFile()
Gets the value prepared for the configuration file. |
void |
loadValue(PropertyLoader loader,
java.lang.String value)
Loads the value from the configuration file. |
protected void |
onKeeperSet()
|
protected void |
onValueChanged(java.lang.String oldValue,
java.lang.String newValue)
Invoked when the value has changed. |
void |
refresh()
Must be called after border aliases have changed in the editor. |
boolean |
setBorder(java.lang.String borderAliasOrName)
Sets the property's value. |
protected boolean |
setBorder(java.lang.String borderAliasOrName,
boolean firstTime)
Sets the property's value. |
void |
setValue(java.lang.Object value)
Sets the new value for this property. |
Methods inherited from class net.ctdp.rfdynhud.properties.Property |
---|
getButtonText, getButtonTooltip, getDocumentationSource, getEditorType, getKeeper, getName, getNameForDisplay, hasDefaultValue, isMatchingKey, isReadOnly, onButtonClicked, quoteValueInConfigurationFile, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final StringMapping DEFAULT_BORDER
Constructor Detail |
---|
public BorderProperty(java.lang.String name, java.lang.String nameForDisplay, java.lang.String defaultValue, boolean readonly, IntProperty paddingTop, IntProperty paddingLeft, IntProperty paddingRight, IntProperty paddingBottom)
name
- the technical name used internally. See Property.getName()
.nameForDisplay
- the name displayed in the editor. See Property.getNameForDisplay()
. If null
is passed, the value of the name parameter is used.defaultValue
- the default valuereadonly
- read only property?paddingTop
- paddingLeft
- paddingRight
- paddingBottom
- public BorderProperty(java.lang.String name, java.lang.String defaultValue, IntProperty paddingTop, IntProperty paddingLeft, IntProperty paddingRight, IntProperty paddingBottom)
name
- the technical name used internally. See Property.getName()
. 'nameForDisplay' is set to the same value.defaultValue
- the default valuepaddingTop
- top padding propertypaddingLeft
- left padding propertypaddingRight
- right padding propertypaddingBottom
- bottom padding propertypublic BorderProperty(java.lang.String name, java.lang.String nameForDisplay, java.lang.String defaultValue, boolean readonly)
name
- the technical name used internally. See Property.getName()
.nameForDisplay
- the name displayed in the editor. See Property.getNameForDisplay()
. If null
is passed, the value of the name parameter is used.defaultValue
- the default valuereadonly
- read only property?public BorderProperty(java.lang.String name, java.lang.String nameForDisplay, java.lang.String defaultValue)
name
- the technical name used internally. See Property.getName()
.nameForDisplay
- the name displayed in the editor. See Property.getNameForDisplay()
. If null
is passed, the value of the name parameter is used.defaultValue
- the default valuepublic BorderProperty(java.lang.String name, java.lang.String defaultValue, boolean readonly)
name
- the technical name used internally. See Property.getName()
. 'nameForDisplay' is set to the same value.defaultValue
- the default valuereadonly
- read only property?public BorderProperty(java.lang.String name, java.lang.String defaultValue)
name
- the technical name used internally. See Property.getName()
. 'nameForDisplay' is set to the same value.defaultValue
- the default valueMethod Detail |
---|
public java.lang.String getDefaultValue()
getDefaultValue
in class Property
public static java.lang.String getDefaultBorderValue(java.lang.String name)
protected void onKeeperSet()
onKeeperSet
in class Property
protected void onValueChanged(java.lang.String oldValue, java.lang.String newValue)
oldValue
- the old valuenewValue
- the new valuepublic void refresh()
protected final boolean setBorder(java.lang.String borderAliasOrName, boolean firstTime)
borderAliasOrName
- the new borderfirstTime
-
public final boolean setBorder(java.lang.String borderAliasOrName)
borderAliasOrName
- the new border
public final java.lang.String getBorderAlias()
public final BorderWrapper getBorder()
public void setValue(java.lang.Object value)
setValue
in class Property
value
- the new valuepublic java.lang.String getValue()
getValue
in class Property
public java.lang.Object getValueForConfigurationFile()
getValueForConfigurationFile
in class Property
public void loadValue(PropertyLoader loader, java.lang.String value)
loadValue
in class Property
loader
- the loadervalue
- the value to load
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |