Package org.openstreetmap.josm.data
Class UndoRedoHandler.CommandAddedEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.openstreetmap.josm.data.UndoRedoHandler.CommandQueueEvent
-
- org.openstreetmap.josm.data.UndoRedoHandler.CommandAddedEvent
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- UndoRedoHandler
public static final class UndoRedoHandler.CommandAddedEvent extends UndoRedoHandler.CommandQueueEvent
Event fired after a command has been added to the command queue.- Since:
- 13729
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private Commandcmdprivate static longserialVersionUID
-
Constructor Summary
Constructors Modifier Constructor Description privateCommandAddedEvent(UndoRedoHandler source, Command cmd)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidfire(UndoRedoHandler.CommandQueuePreciseListener listener)Calls the appropriate method of the listener for this event.CommandgetCommand()Returns the added command.-
Methods inherited from class org.openstreetmap.josm.data.UndoRedoHandler.CommandQueueEvent
getSource
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CommandAddedEvent
private CommandAddedEvent(UndoRedoHandler source, Command cmd)
-
-
Method Detail
-
getCommand
public Command getCommand()
Returns the added command.- Returns:
- the added command
-
fire
void fire(UndoRedoHandler.CommandQueuePreciseListener listener)
Description copied from class:UndoRedoHandler.CommandQueueEventCalls the appropriate method of the listener for this event.- Specified by:
firein classUndoRedoHandler.CommandQueueEvent- Parameters:
listener- dataset listener to notify about this event
-
-