|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.v3x.gadgets.TwoStepActionSequence
public class TwoStepActionSequence
A mechanism for actions involving a specification and action toggle (usually from a button). For example, to delete something on a map, you need to specify the thing you want to move and press the delete button (activating the action). Includes logic for validation of the specified object.
| Field Summary | |
|---|---|
protected java.lang.Object |
specified
|
| Constructor Summary | |
|---|---|
TwoStepActionSequence()
|
|
| Method Summary | |
|---|---|
UnaryFunction |
getAction()
The function called on the specified item when the ActiveToggle is switched on. |
Toggle |
getActiveToggle()
When switched on, this toggle activates the sequence. |
UnaryFunction |
getRelease()
The function called on the specified item when the ActiveToggle is switched off. |
SpecificationListener |
getSpecificationListener()
|
protected java.lang.Object |
getSpecified()
|
UnaryPredicate |
getValidator()
The predicate called on the specified item to verify if it is valid for this action sequence. |
Toggle |
getValidToggle()
Indicates whether the current specified item is considered valid for the sequence. |
void |
setAction(UnaryFunction newAction)
The function called on the specified item when the ActiveToggle is switched on. |
protected void |
setActiveToggle(Toggle newToggle)
|
void |
setRelease(UnaryFunction newRelease)
The function called on the specified item when the ActiveToggle is switched off. |
void |
setValidator(UnaryPredicate newValidator)
The predicate called on the specified item to verify if it is valid for this action sequence. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.Object specified
| Constructor Detail |
|---|
public TwoStepActionSequence()
| Method Detail |
|---|
public SpecificationListener getSpecificationListener()
public Toggle getActiveToggle()
public Toggle getValidToggle()
public UnaryFunction getAction()
public void setAction(UnaryFunction newAction)
public UnaryFunction getRelease()
public void setRelease(UnaryFunction newRelease)
public UnaryPredicate getValidator()
public void setValidator(UnaryPredicate newValidator)
protected java.lang.Object getSpecified()
protected void setActiveToggle(Toggle newToggle)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||