Class AbstractToStringProperty<T>

    • Method Detail

      • put

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

        protected abstract java.lang.String toString​(T t)
        Converts the string to an object of the given type.
        Parameters:
        t - The object.
        Returns:
        The string representing the object
        Throws:
        AbstractProperty.InvalidPreferenceValueException - If the value could not be converted.
      • getAsString

        protected java.lang.String getAsString()
        Gets the preference value as String.
        Returns:
        The string preference value.
      • getSpecialized

        public AbstractToStringProperty<TgetSpecialized​(java.lang.String spec)
        Gets a specialized setting value that has the current value as default

        The key will be getKey().spec

        Parameters:
        spec - The key specialization
        Returns:
        The property
      • getChildProperty

        protected AbstractToStringProperty<TgetChildProperty​(java.lang.String key)
        Gets a setting that defaults to this setting if the key is not set.
        Parameters:
        key - The more specialized key.
        Returns:
        The new setting.