Class StringProperty

    • Field Detail

      • mMultiline

        private boolean mMultiline
        Is multiline string
    • Constructor Detail

      • StringProperty

        public StringProperty()
        Default constructor. Value of the property will be null. ID will be empty string. Property is editable.
      • StringProperty

        @Deprecated
        public StringProperty​(java.lang.String id,
                              @CheckForNull
                              java.lang.Object value)
      • StringProperty

        public StringProperty​(java.lang.String id,
                              @CheckForNull
                              java.lang.String value)
        The property constructor. Property is editable, and not multi lined.
        Parameters:
        id - the ID of property.
        value - value of the property.
      • StringProperty

        public StringProperty​(java.lang.String id,
                              @CheckForNull
                              java.lang.String value,
                              boolean multiline)
        The property constructor. Property is editable.
        Parameters:
        id - the ID of property.
        value - value of the property.
        multiline - the multiline flag value.
    • Method Detail

      • setValue

        public void setValue​(@CheckForNull
                             java.lang.Object value)
        Description copied from class: Property
        Sets new property value. Will fire a PropertyChangeEvent with propertyName - property ID, newValue and oldValue.
        Overrides:
        setValue in class Property
        Parameters:
        value - a new property value.
      • convertValue

        @CheckForNull
        private static java.lang.String convertValue​(java.lang.String id,
                                                     @CheckForNull
                                                     java.lang.Object value)
      • isMultiline

        public boolean isMultiline()
        Returns multiline flag.
        Returns:
        the multiline flag.
      • setMultiline

        public void setMultiline​(boolean multiline)
        Sets the multiline flag
        Parameters:
        multiline - the multiline flag value.
      • getValueStringRepresentation

        public java.lang.String getValueStringRepresentation()
        Returns value's string representation.
        Overrides:
        getValueStringRepresentation in class Property
        Returns:
        string value.
      • getString

        public java.lang.String getString()
        Returns value as String object.
        Returns:
        String object.
      • clone

        public StringProperty clone()
        Description copied from class: Property
        Clones the property. Clone is not deep, the clone will have the same instance of value. The clone will not have registered PropertyChangeListeners.
        Overrides:
        clone in class Property
        Returns:
        the cloned property.