Class StringProperties

java.lang.Object
org.jjazz.utilities.api.ObservableProperties<String>
org.jjazz.utilities.api.StringProperties
All Implemented Interfaces:
Serializable

public class StringProperties extends ObservableProperties<String> implements Serializable
String-value based and serializable ObservableProperties.
See Also:
  • Constructor Details

    • StringProperties

      public StringProperties()
    • StringProperties

      public StringProperties(Object owner)
    • StringProperties

      public StringProperties(Object owner, StringProperties sp)
  • Method Details

    • getBoolean

      public Boolean getBoolean(String prop, Boolean defaultValue)
    • putBoolean

      public void putBoolean(String prop, Boolean value)
    • getInt

      public int getInt(String prop, Integer defaultValue)
    • putInt

      public void putInt(String prop, Integer value)
    • shiftInt

      public int shiftInt(String prop, int offset, int initValue)
      Add an offset to an int property value.

      If property does not exist yet, the method creates it with initValue then adds offset.

      Parameters:
      prop -
      offset -
      initValue -
      Returns:
      The new int property value.
    • getColor

      public Color getColor(String prop, Color defaultValue)
    • putColor

      public void putColor(String prop, Color value)