Class StyleSetting.PropertyStyleSetting<T>
java.lang.Object
org.openstreetmap.josm.gui.mappaint.StyleSetting.LabeledStyleSetting
org.openstreetmap.josm.gui.mappaint.StyleSetting.PropertyStyleSetting<T>
- Type Parameters:
T- The property type
- All Implemented Interfaces:
Comparable<StyleSetting.LabeledStyleSetting>,StyleSetting
- Direct Known Subclasses:
StyleSetting.BooleanStyleSetting,StyleSetting.ColorStyleSetting
- Enclosing interface:
- StyleSetting
public static class StyleSetting.PropertyStyleSetting<T>
extends StyleSetting.LabeledStyleSetting
implements StyleSetting
A setting for a style
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.openstreetmap.josm.gui.mappaint.StyleSetting
StyleSetting.BooleanStyleSetting, StyleSetting.ColorStyleSetting, StyleSetting.LabeledStyleSetting, StyleSetting.PropertyStyleSetting<T>, StyleSetting.StyleSettingGroup -
Field Summary
FieldsFields inherited from class org.openstreetmap.josm.gui.mappaint.StyleSetting.LabeledStyleSetting
label, parentStyle -
Constructor Summary
ConstructorsConstructorDescriptionPropertyStyleSetting(StyleSource parentStyle, String label, Class<T> type, AbstractToStringProperty<T> property) -
Method Summary
Modifier and TypeMethodDescriptiongetKey()Replies the property key.Create a matchingStyleSettingGuiinstances for a givenStyleSettingobject.getValue()gets the value for this settingvoidsetStringValue(String value) Sets this property to the specified string value.voidSets this property to the specified value.Methods inherited from class org.openstreetmap.josm.gui.mappaint.StyleSetting.LabeledStyleSetting
compareTo, equals, hashCode
-
Field Details
-
type
-
property
-
-
Constructor Details
-
PropertyStyleSetting
PropertyStyleSetting(StyleSource parentStyle, String label, Class<T> type, AbstractToStringProperty<T> property)
-
-
Method Details
-
getKey
Replies the property key.- Returns:
- The property key
-
getValue
Description copied from interface:StyleSettinggets the value for this setting- Specified by:
getValuein interfaceStyleSetting- Returns:
- The value the user selected
-
setValue
Sets this property to the specified value.- Parameters:
value- The new value of this property
-
setStringValue
Sets this property to the specified string value.- Parameters:
value- The new string value of this property
-
getStyleSettingGui
Description copied from interface:StyleSettingCreate a matchingStyleSettingGuiinstances for a givenStyleSettingobject.- Specified by:
getStyleSettingGuiin interfaceStyleSetting- Returns:
- matching
StyleSettingGui
-