org.eclipse.birt.report.model.api.activity
Interface IActivityRecord


public interface IActivityRecord

Application-level interface into the Model's activity record.


Method Summary
 boolean canRedo()
          Tells if this record can be redone.
 boolean canUndo()
          Tells if this record can be undone.
 void execute()
          Executes the record.
 java.lang.String getLabel()
          Gets the label of this record.
 void redo()
          Redoes the record.
 void undo()
          Undoes the record.
 

Method Detail

execute

public void execute()
Executes the record.


undo

public void undo()
Undoes the record. Leaves the state of the model identical to what it was before execute was called.


redo

public 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

public boolean canUndo()
Tells if this record can be undone.

Returns:
true if the record can be undone, false otherwise

canRedo

public boolean canRedo()
Tells if this record can be redone.

Returns:
true if redoable, false otherwise.

getLabel

public java.lang.String getLabel()
Gets the label of this record. This label should be localized.

Returns:
the label of this record


Copyright © 2005 Actuate Corp. All rights reserved.