vars.annotation.ui.commandqueue.Command |
Known Indirect Subclasses
AddAssociationCmd,
AddObservationCmd,
ChangeAssociationsCmd,
ChangeCameraDirectionsCmd,
ChangeObservationNameCmd,
ChangeTimeCodeCmd,
ChangeVideoArchiveNameCmd,
ChangeVideoArchiveSetCmd,
CopyObservationsCmd,
DuplicateObservationsCmd,
MoveVideoFramesCmd,
RemoveAssociationsCmd,
RemoveImageReferencesCmd,
RemoveObservationsCmd,
RenameObservationsCmd,
RenameVideoArchiveCmd
|
Class Overview
Wrapper for commands that change the data model (i.e. JPA managed objects).
The apply method is used to execute the command. The unapply method is used
to do the inverse operation so that undo and redo can be implemented. It's important
that the commands fire the events needed to trigger redraw events such as
ObservationsChangedEvent
so that the UI
components can sync state.
Public Methods
public
abstract
void
apply
(ToolBelt toolBelt)
Apply/execute the command
public
abstract
String
getDescription
()
public
abstract
void
unapply
(ToolBelt toolBelt)
The inverse of apply, essentially an undo