Documentation of 'org.jhotdraw.gui.AttributeEditor' Java class
AttributeEditor
org.jhotdraw.gui

Interface AttributeEditor<T>

  • All Known Implementing Classes:
    JAttributeSlider, JAttributeTextArea, JAttributeTextField


    public interface AttributeEditor<T>
    Interface for a field or any other kind of editor which can be used to edit an attribute of the selected Figures in a DrawingView.

    The AttributeEditor can be attached to a single DrawingView or to the whole DrawingEditor by means of an AttributeFieldHandler.

    • Field Detail

      • ATTRIBUTE_VALUE_PROPERTY

        static final java.lang.String ATTRIBUTE_VALUE_PROPERTY
        See Also:
        Constant Field Values
      • MULTIPLE_VALUES_PROPERTY

        static final java.lang.String MULTIPLE_VALUES_PROPERTY
        See Also:
        Constant Field Values
    • Method Detail

      • getComponent

        javax.swing.JComponent getComponent()
        Returns the JComponent of the attribute field.
      • setAttributeValue

        void setAttributeValue(T newValue)
        Sets the attribute value. This is a bound property.
        Parameters:
        newValue -
      • getAttributeValue

        T getAttributeValue()
        Gets the attribute value.
      • setMultipleValues

        void setMultipleValues(boolean newValue)
        This method is called, if the figures of the attribute field have multiple values.
        Parameters:
        newValue -
      • isMultipleValues

        boolean isMultipleValues()
        This method returns the value of the multipleValues property.
      • getValueIsAdjusting

        boolean getValueIsAdjusting()
        Returns true if the field is currently adjusting the value.
      • addPropertyChangeListener

        void addPropertyChangeListener(java.beans.PropertyChangeListener l)
        Adds a property change listener.
        Parameters:
        l -
      • removePropertyChangeListener

        void removePropertyChangeListener(java.beans.PropertyChangeListener l)
        Removes a property change listener.
        Parameters:
        l -

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.