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

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

public class ActionSetDynamicDefault
extends java.lang.Object
implements Action

A dynamic default action allows to set the default of a state variable to depend on the value of another state variable. The default value itself is not static, but actually stored somewhere else in the system.

Author:
raphael

Constructor Summary
ActionSetDynamicDefault(Reference target)
          Creates a set dynamic default action.
ActionSetDynamicDefault(UiObject target, UiObject source)
          Creates a set dynamic default action.
 
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

ActionSetDynamicDefault

public ActionSetDynamicDefault(Reference target)
Creates a set dynamic default action. The reference points to the state variable whose value is used as the default value. The reference can be absolute or relative.

Parameters:
target -

ActionSetDynamicDefault

public ActionSetDynamicDefault(UiObject target,
                               UiObject source)
Creates a set dynamic default action. A relative reference is automatically computed from the given UIObjects.

Parameters:
target -
source -
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)