com.partnersoft.v3x.gadgets
Class ThreeStepActionSequence

java.lang.Object
  extended by com.partnersoft.v3x.gadgets.TwoStepActionSequence
      extended by com.partnersoft.v3x.gadgets.ThreeStepActionSequence

public class ThreeStepActionSequence
extends TwoStepActionSequence

A mechanism for actions involving two specifications and possible cancellation. For example, to move something on a map, you need to specify the thing you want to move, select the move button (activating the action), then specify where to move it to.


Field Summary
 
Fields inherited from class com.partnersoft.v3x.gadgets.TwoStepActionSequence
specified
 
Constructor Summary
ThreeStepActionSequence()
           
 
Method Summary
 Toggle getHoldToggle()
          If false, releases (becomes inactive) immediately after the second specification.
 BinaryFunction getSecondAction()
          Function called on the first and second specified items after the second specified item is specified.
 SpecificationListener getSecondSpecificationListener()
           
 UnaryPredicate getSecondValidator()
          Predicate which checks if the second specified item is valid for this sequence.
 void setSecondAction(BinaryFunction newAction)
          Function called on the first and second specified items after the second specified item is specified.
 void setSecondValidator(UnaryPredicate newValidator)
          Predicate which checks if the second specified item is valid for this sequence.
 
Methods inherited from class com.partnersoft.v3x.gadgets.TwoStepActionSequence
getAction, getActiveToggle, getRelease, getSpecificationListener, getSpecified, getValidator, getValidToggle, setAction, setActiveToggle, setRelease, setValidator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreeStepActionSequence

public ThreeStepActionSequence()
Method Detail

getSecondSpecificationListener

public SpecificationListener getSecondSpecificationListener()

getSecondAction

public BinaryFunction getSecondAction()
Function called on the first and second specified items after the second specified item is specified. Ahem.


setSecondAction

public void setSecondAction(BinaryFunction newAction)
Function called on the first and second specified items after the second specified item is specified. Ahem.


getSecondValidator

public UnaryPredicate getSecondValidator()
Predicate which checks if the second specified item is valid for this sequence.


setSecondValidator

public void setSecondValidator(UnaryPredicate newValidator)
Predicate which checks if the second specified item is valid for this sequence.


getHoldToggle

public Toggle getHoldToggle()
If false, releases (becomes inactive) immediately after the second specification.