public static class StyleSetting.PropertyStyleSetting<T> extends StyleSetting.LabeledStyleSetting implements StyleSetting
StyleSetting.BooleanStyleSetting, StyleSetting.LabeledStyleSetting, StyleSetting.PropertyStyleSetting<T>, StyleSetting.StyleSettingGroup
Modifier and Type | Field and Description |
---|---|
private AbstractToStringProperty<T> |
property |
private java.lang.Class<T> |
type |
label, parentStyle
Constructor and Description |
---|
PropertyStyleSetting(StyleSource parentStyle,
java.lang.String label,
java.lang.Class<T> type,
AbstractToStringProperty<T> property) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getKey()
Replies the property key.
|
StyleSettingGui |
getStyleSettingGui()
Create a matching
StyleSettingGui instances for a given StyleSetting object. |
T |
getValue()
gets the value for this setting
|
void |
setStringValue(java.lang.String value)
Sets this property to the specified string value.
|
void |
setValue(T value)
Sets this property to the specified value.
|
compareTo, equals, hashCode
private final AbstractToStringProperty<T> property
PropertyStyleSetting(StyleSource parentStyle, java.lang.String label, java.lang.Class<T> type, AbstractToStringProperty<T> property)
public java.lang.String getKey()
public T getValue()
StyleSetting
getValue
in interface StyleSetting
public void setValue(T value)
value
- The new value of this propertypublic void setStringValue(java.lang.String value)
value
- The new string value of this propertypublic StyleSettingGui getStyleSettingGui()
StyleSetting
StyleSettingGui
instances for a given StyleSetting
object.getStyleSettingGui
in interface StyleSetting
StyleSettingGui