|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bbn.openmap.event.UndoStackSupport
public class UndoStackSupport
This is a utility class that can be used by beans that need support for notifying gui components that undo/redo actions are available. Use an instance of this class as a member field of your bean and delegate work to it. Used by the UndoStack.
Field Summary | |
---|---|
static java.util.logging.Logger |
logger
|
Constructor Summary | |
---|---|
UndoStackSupport()
Construct a ProjectionStackSupport. |
Method Summary | |
---|---|
void |
add(UndoStackTrigger pt)
Add a ProjectionStackTrigger. |
void |
fireStackStatus(UndoEvent undoEvent,
UndoEvent redoEvent)
Send a status to all registered triggers. |
java.util.ArrayList<UndoStackTrigger> |
getTriggers()
Return a cloned list of Triggers. |
void |
remove(UndoStackTrigger pt)
Remove a ProjectionStackTrigger. |
int |
size()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.util.logging.Logger logger
Constructor Detail |
---|
public UndoStackSupport()
Method Detail |
---|
public void add(UndoStackTrigger pt)
pt
- ProjectionStackTriggerpublic void remove(UndoStackTrigger pt)
pt
- ProjectionStackTriggerpublic java.util.ArrayList<UndoStackTrigger> getTriggers()
public int size()
public void fireStackStatus(UndoEvent undoEvent, UndoEvent redoEvent)
undoEvent
- the next event for undo, so the GUI can be updated with
what will happen on undo.redoEvent
- the next event for redo, so the GUI can be updated with
what will happen on redo.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |