Documentation of 'org.jhotdraw.draw.event.AbstractAttributeEditorHandler' Java class
AbstractAttributeEditorHandler
org.jhotdraw.draw.event

Class AbstractAttributeEditorHandler<T>

    • Method Detail

      • setEditor

        public void setEditor(@Nullable
                              DrawingEditor newValue)
        Attaches the FigureAttributeEditorHandler to the specified DrawingEditor.

        The FigureAttributeEditorHandler listens to view changes and selection changes of the drawing editor and calls setEnabled(boolean) and updateField(Set<Figure>) on the field accordingly.

        Parameters:
        newValue - a drawing editor.
      • getEditor

        @Nullable
        public DrawingEditor getEditor()
        Returns the DrawingEditor to which this FigureAttributeEditorHandler is attached.
      • setView

        public void setView(@Nullable
                            DrawingView newValue)
        Attaches the FigureAttributeEditorHandler to the specified DrawingView.

        If a non-null value is provided, the FigureAttributeEditorHandler listens only to selection changes of the specified view. If a null value is provided, the FigureAttributeEditorHandler listens to all views of the drawing editor.

        Parameters:
        newValue - a drawing view.
      • getView

        @Nullable
        public DrawingView getView()
        Returns the DrawingView to which this FigureAttributeEditorHandler is attached. Returns null, if the FigureAttributeEditorHandler is attached to all views of the DrawingEditor.
      • setUpdateDrawingEditorDefaults

        public void setUpdateDrawingEditorDefaults(boolean newValue)
        Set this to true if you want the attribute editor to update the default values of the drawing editor.
        Parameters:
        newValue -
      • isUpdateDrawingEditorDefaults

        public boolean isUpdateDrawingEditorDefaults()
        Returns true if the attribute editor updates the default values of the drawing editor.
      • setAttributeEditor

        public void setAttributeEditor(AttributeEditor<T> newValue)
        Attaches the FigureAttributeEditorHandler to the specified AttributeEditor.
      • getAttributeEditor

        public AttributeEditor<T> getAttributeEditor()
        Returns the AttributeEditor to which this FigureAttributeEditorHandler is attached.
      • setAttributeKey

        public void setAttributeKey(AttributeKey<T> newValue)
      • dispose

        public void dispose()
        Description copied from interface: Disposable
        Disposes of all resources held by this object so that they can be garbage collected.
        Specified by:
        dispose in interface Disposable

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.