Class IntegerProperty

    • Constructor Detail

      • IntegerProperty

        public IntegerProperty​(java.lang.String key,
                               int defaultValue)
        Constructs a new IntegerProperty.
        Parameters:
        key - The property key
        defaultValue - The default value
    • Method Detail

      • put

        public boolean put​(java.lang.Integer value)
        Description copied from class: AbstractProperty
        Sets this property to the specified value.
        Overrides:
        put in class AbstractToStringProperty<java.lang.Integer>
        Parameters:
        value - The new value of this property
        Returns:
        true if something has changed (i.e. value is different than before)
      • toString

        protected java.lang.String toString​(java.lang.Integer t)
        Description copied from class: AbstractToStringProperty
        Converts the string to an object of the given type.
        Specified by:
        toString in class AbstractToStringProperty<java.lang.Integer>
        Parameters:
        t - The object.
        Returns:
        The string representing the object
      • parseAndPut

        public boolean parseAndPut​(java.lang.String value)
        parses and saves an integer value
        Parameters:
        value - the value to be parsed
        Returns:
        true - preference value has changed false - parsing failed or preference value has not changed