|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.core.kivi.AbstractCombination
public abstract class AbstractCombination
Abstract base implementation for combinations.
Constructor Summary | |
---|---|
AbstractCombination()
|
Method Summary | |
---|---|
protected void |
doNothing()
Called by execute() to make sure previous effects are not undone when an execution wants to perform no changes. |
protected void |
dontUndo()
Called by execute() to make sure previous effects are not undone when an execution wants to keep those effects visible indefinitely. |
Class<? extends ITriggerState>[] |
getTriggerStates()
Get the array of trigger state classes this combination listens to. |
boolean |
isActive()
Check whether this combination is active. |
protected void |
schedule(IEffect effect)
Schedule an effect for execution, performs merging against all other effects scheduled during this execution before actually executing the effect. |
void |
setActive(boolean a)
Change the active status of this combination. |
List<IEffect> |
trigger(ITriggerState triggerState)
Trigger the execution of this combination. |
void |
undo()
Attempt to undo all active effects, for example when shutting down view management or when disabling this combination. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractCombination()
Method Detail |
---|
public List<IEffect> trigger(ITriggerState triggerState)
trigger
in interface ICombination
triggerState
- the trigger state responsible for the triggering
protected void schedule(IEffect effect)
effect
- the effect to scheduleprotected void doNothing()
protected void dontUndo()
public Class<? extends ITriggerState>[] getTriggerStates()
getTriggerStates
in interface ICombination
public void undo()
undo
in interface ICombination
public boolean isActive()
isActive
in interface ICombination
public void setActive(boolean a)
setActive
in interface ICombination
a
- new active status
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |