|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvitro.CompositeAction
public class CompositeAction
A CompositeAction offers an easy way to carry out several existing Actions in sequence as an atomic operation. Component Actions will be applied in the order given, and rolled back in reverse order.
Field Summary | |
---|---|
List<Action> |
actions
|
Constructor Summary | |
---|---|
CompositeAction(Action... actions)
An alternate vararg-based constructor. |
|
CompositeAction(List<Action> actions)
Create a new CompositeAction from a list of Actions. |
Method Summary | |
---|---|
void |
apply()
Apply this Action's change to a supplied Model or Models. |
boolean |
equals(Object o)
|
int |
hashCode()
|
String |
toString()
|
void |
undo()
Revert any changes made during apply(). |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final List<Action> actions
Constructor Detail |
---|
public CompositeAction(List<Action> actions)
actions
- the List of Actions to perform.public CompositeAction(Action... actions)
actions
- a sequence of Actions to perform.Method Detail |
---|
public void apply()
apply
in interface Action
public void undo()
undo
in interface Action
public int hashCode()
hashCode
in class Object
public boolean equals(Object o)
equals
in class Object
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |