Interface IActivityRecord
-
public interface IActivityRecordApplication-level interface into the Model's activity record.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanRedo()Tells if this record can be redone.booleancanUndo()Tells if this record can be undone.voidexecute()Executes the record.java.lang.StringgetLabel()Gets the label of this record.voidredo()Redoes the record.voidundo()Undoes the record.
-
-
-
Method Detail
-
execute
void execute()
Executes the record.
-
undo
void undo()
Undoes the record. Leaves the state of the model identical to what it was before execute was called.
-
redo
void redo()
Redoes the record. Logically repeats the execute record. The state of the model must be identical to that after undo( ) has executed.
-
canUndo
boolean canUndo()
Tells if this record can be undone.- Returns:
- true if the record can be undone, false otherwise
-
canRedo
boolean canRedo()
Tells if this record can be redone.- Returns:
- true if redoable, false otherwise.
-
getLabel
java.lang.String getLabel()
Gets the label of this record. This label should be localized.- Returns:
- the label of this record
-
-