Class Property_d


  • public class Property_d
    extends PropertyBase
    Property class
    The Property class is a template to support properties of any type. A Property
    is characterized by a string identifier, string description and a value of the
    template specified type.
    • Constructor Detail

      • Property_d

        public Property_d​(long cPtr,
                          boolean cMemoryOwn)
      • Property_d

        public Property_d​(java.lang.String identifier,
                          java.lang.String description,
                          double value)
        Constructs Property.

        Constructs a Property and tries to auto detect the type.

        Parameters:
        identifier - [in] identifier
        description - [in] description
        value - [in] value
      • Property_d

        public Property_d​(java.lang.String identifier,
                          java.lang.String description,
                          PropertyType type,
                          double value)
        Constructs Property.
        Parameters:
        identifier - [in] identifier
        description - [in] description
        type - [in] type of property
        value - [in] value
    • Method Detail

      • getCPtr

        public static long getCPtr​(Property_d obj)
      • getValue

        public SWIGTYPE_p_double getValue()
        Returns a reference to the property value.

        Note: Changing the value returned by reference will NOT fire the
        changed event. Please consider using the setValue function if
        possible, or fire the event manually on change, by calling
        changedEvent().fire()

        Returns:
        reference to the property value.
      • setValue

        public void setValue​(double value)
        Sets the property value.

        This function will fire the changed event.

        Parameters:
        value - [in] the new value of the Property