Package jpicedt.ui
Class MDIManager.BoardEventHandler
- java.lang.Object
-
- jpicedt.ui.MDIManager.BoardEventHandler
-
- All Implemented Interfaces:
java.beans.PropertyChangeListener,java.util.EventListener,javax.swing.event.UndoableEditListener,SelectionListener
- Enclosing class:
- MDIManager
protected class MDIManager.BoardEventHandler extends java.lang.Object implements SelectionListener, javax.swing.event.UndoableEditListener, java.beans.PropertyChangeListener
A handler for events triggered from any PEDrawingBoard, its PECanvas or its EditorKit.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBoardEventHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidpropertyChange(java.beans.PropertyChangeEvent e)Handler for "PropertyChange" events sources from either PECanvas or its EditorKit.voidselectionUpdate(SelectionEvent e)Handler for "Selection" events triggered e.g.voidundoableEditHappened(javax.swing.event.UndoableEditEvent e)Handler for "UndoableEdit" events sourced by PECanvas.
-
-
-
Method Detail
-
selectionUpdate
public void selectionUpdate(SelectionEvent e)
Handler for "Selection" events triggered e.g. by a click on a graphical object (from a given PEDrawingBoard) This takes the following actions:- marks the active drawing board as dirty and possibly adds a trailing "*" to the frame's title,
- updates widgets states (ie menu items + toolbar buttons),
- eventually notifies interested dockable panels (through the "dockablePanelsMap" hash table) that the state of the Drawing has changed (for instance, say there's a graphical object filled in red and we just selected it -> changes the current active fill colour to red in the attributes editor palette).
- Specified by:
selectionUpdatein interfaceSelectionListener
-
undoableEditHappened
public void undoableEditHappened(javax.swing.event.UndoableEditEvent e)
Handler for "UndoableEdit" events sourced by PECanvas. Updates undo/redo menu items and corresponding toolbar buttons.- Specified by:
undoableEditHappenedin interfacejavax.swing.event.UndoableEditListener
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent e)
Handler for "PropertyChange" events sources from either PECanvas or its EditorKit. Simply forwards these events to all DockablePanel's which implement the PropertyChangeListener interface, as well as to the attached PEMenuBar.- Specified by:
propertyChangein interfacejava.beans.PropertyChangeListener
-
-