public interface

Command

vars.annotation.ui.commandqueue.Command
Known Indirect Subclasses

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.

Summary

Public Methods
abstract void apply(ToolBelt toolBelt)
Apply/execute the command
abstract String getDescription()
abstract void unapply(ToolBelt toolBelt)
The inverse of apply, essentially an undo

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