edu.washington.cs.supple.customization.command
Interface Action

All Known Implementing Classes:
ActionCopyElement, ActionMoveElement, ActionRemoveDynamicElement, ActionRemoveStaticElement, ActionSetDynamicDefault, ActionSetStaticDefault, ActionSetWidgetType

public interface Action

We distinguish between customization commands and actions. An action is a concrete customization at a single UI location. A command is issued by the user and may include multiple actions (e.g. generalization).

Author:
raphael

Method Summary
 void execute(State state, UiObject location, Command executer)
          Executes an action.
 void executeRedo(State state, HistoryRecord record, Command executer)
          Executes a redo action.
 void executeReversal(State state, HistoryRecord record, Command executer)
          Executes a reverse action.
 

Method Detail

execute

public void execute(State state,
                    UiObject location,
                    Command executer)
             throws ConditionViolationException
Executes an action.

Parameters:
state -
location -
executer -
Throws:
ConditionViolationException

executeReversal

public void executeReversal(State state,
                            HistoryRecord record,
                            Command executer)
                     throws ConditionViolationException
Executes a reverse action.

Parameters:
state -
record -
executer -
Throws:
ConditionViolationException

executeRedo

public void executeRedo(State state,
                        HistoryRecord record,
                        Command executer)
                 throws ConditionViolationException
Executes a redo action.

Parameters:
state -
record -
executer -
Throws:
ConditionViolationException