Class ParallelWayAction.KeyboardModifiersProperty
- java.lang.Object
-
- org.openstreetmap.josm.data.preferences.AbstractProperty<T>
-
- org.openstreetmap.josm.data.preferences.AbstractToStringProperty<Map<ParallelWayAction.Modifier,Boolean>>
-
- org.openstreetmap.josm.actions.mapmode.ParallelWayAction.KeyboardModifiersProperty
-
- Enclosing class:
- ParallelWayAction
private static class ParallelWayAction.KeyboardModifiersProperty extends AbstractToStringProperty<Map<ParallelWayAction.Modifier,Boolean>>
A property that holds the keyboard modifiers.- Since:
- 10869
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstreetmap.josm.data.preferences.AbstractToStringProperty
AbstractToStringProperty.ChildProperty<T>
-
Nested classes/interfaces inherited from class org.openstreetmap.josm.data.preferences.AbstractProperty
AbstractProperty.InvalidPreferenceValueException, AbstractProperty.ValueChangeEvent<T>, AbstractProperty.ValueChangeListener<T>
-
-
Field Summary
-
Fields inherited from class org.openstreetmap.josm.data.preferences.AbstractProperty
defaultValue, key, preferences
-
-
Constructor Summary
Constructors Constructor Description KeyboardModifiersProperty(String key, String defaultValue)
KeyboardModifiersProperty(String key, Map<ParallelWayAction.Modifier,Boolean> defaultValue)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static Map<ParallelWayAction.Modifier,Boolean>
createFromString(String string)
protected Map<ParallelWayAction.Modifier,Boolean>
fromString(String string)
Converts the string to an object of the given type.protected String
toString(Map<ParallelWayAction.Modifier,Boolean> t)
Converts the string to an object of the given type.-
Methods inherited from class org.openstreetmap.josm.data.preferences.AbstractToStringProperty
get, getAsString, getChildProperty, getSpecialized, put
-
Methods inherited from class org.openstreetmap.josm.data.preferences.AbstractProperty
addListener, addListenerImpl, addWeakListener, cached, equals, getDefaultValue, getKey, getPreferences, hashCode, isSet, remove, removeListener, removeListenerImpl, storeDefaultValue
-
-
-
-
Constructor Detail
-
KeyboardModifiersProperty
KeyboardModifiersProperty(String key, String defaultValue)
-
KeyboardModifiersProperty
KeyboardModifiersProperty(String key, Map<ParallelWayAction.Modifier,Boolean> defaultValue)
-
-
Method Detail
-
toString
protected String toString(Map<ParallelWayAction.Modifier,Boolean> t)
Description copied from class:AbstractToStringProperty
Converts the string to an object of the given type.- Specified by:
toString
in classAbstractToStringProperty<Map<ParallelWayAction.Modifier,Boolean>>
- Parameters:
t
- The object.- Returns:
- The string representing the object
-
fromString
protected Map<ParallelWayAction.Modifier,Boolean> fromString(String string)
Description copied from class:AbstractToStringProperty
Converts the string to an object of the given type.- Specified by:
fromString
in classAbstractToStringProperty<Map<ParallelWayAction.Modifier,Boolean>>
- Parameters:
string
- The string- Returns:
- The object.
-
createFromString
private static Map<ParallelWayAction.Modifier,Boolean> createFromString(String string)
-
-