|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectedu.washington.cs.supple.customization.command.CommandReversals
The reversal of another command. The reversal could actually cause several individual action reversals. For example, if the the command to be reversed was a generalization, several reversals are performed.
| Constructor Summary | |
CommandReversals(Command command)
|
|
| Method Summary | |
boolean |
equals(Command c)
Compares this command to another command. |
void |
execute(State s)
Executes the command on a given UI. |
void |
execute(State s,
Specification spec)
Applies a command only to a part of a UI. |
Action |
getAction()
Returns the action type used by the command. |
java.lang.String |
toString()
A string representation of the command. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CommandReversals(Command command)
| Method Detail |
public void execute(State s)
throws ConditionViolationException
Command
execute in interface Commands - state of UI
ConditionViolationException
public void execute(State s,
Specification spec)
throws ConditionViolationException
Command
execute in interface Commands - state of UIspec - part of the UI where command is applied
ConditionViolationExceptionpublic Action getAction()
Command
getAction in interface Commandpublic boolean equals(Command c)
Command
equals in interface Commandc - another command to compare this one topublic java.lang.String toString()
Command
toString in interface Command
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||