edu.washington.cs.supple.customization.command
Class ActionSetStaticDefault

java.lang.Object
  extended byedu.washington.cs.supple.customization.command.ActionSetStaticDefault
All Implemented Interfaces:
Action

public class ActionSetStaticDefault
extends java.lang.Object
implements Action

A static default action sets a state variables default value to a fixed value.

Author:
raphael

Constructor Summary
ActionSetStaticDefault(java.lang.Object defaultValue)
           
 
Method Summary
 boolean equals(Action c)
           
 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.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ActionSetStaticDefault

public ActionSetStaticDefault(java.lang.Object defaultValue)
Method Detail

execute

public void execute(State state,
                    UiObject location,
                    Command executer)
Description copied from interface: Action
Executes an action.

Specified by:
execute in interface Action
Parameters:
state -
location -
executer -

executeReversal

public void executeReversal(State state,
                            HistoryRecord record,
                            Command executer)
Description copied from interface: Action
Executes a reverse action.

Specified by:
executeReversal in interface Action
Parameters:
state -
record -
executer -

executeRedo

public void executeRedo(State state,
                        HistoryRecord record,
                        Command executer)
Description copied from interface: Action
Executes a redo action.

Specified by:
executeRedo in interface Action
Parameters:
state -
record -
executer -

toString

public java.lang.String toString()

equals

public boolean equals(Action c)