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

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

public class ActionCopyElement
extends java.lang.Object
implements Action

Copies an element from one location of the UIObject to another container type object.

Author:
raphael

Constructor Summary
ActionCopyElement(Reference target)
          Creates a copy element 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

ActionCopyElement

public ActionCopyElement(Reference target)
Creates a copy element action. A reference to the container type object which is the target location has to be passed as a parameter. The reference can be absolute or relative. The distinction is important if the same action is used for performing several copies of different objects (e.g. as part of a generalized copy command). If the reference is absolute, all copied elements will be copied to the equivalent container. If the reference is relative, the target containers depend on the location of the copied element.

Parameters:
target -
Method Detail

execute

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

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

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)