Package com.globalmentor.model
Interface SequenceTask
- All Superinterfaces:
PropertyBindable
,PropertyConstrainable
,Task
- All Known Implementing Classes:
AbstractSequenceTask
A task performed in a sequence.
- Author:
- Garret Wilson
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The bound, constrained property of the sequence index, of typeInteger
.Fields inherited from interface com.globalmentor.model.Task
STATE_PROPERTY
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the index in the sequence.void
goFinish()
Verifies the contents and finishes the sequence.void
goFirst()
Goes to the first step in the sequence.void
goNext()
Goes to the next step in the sequence.void
Goes to the previous step in the sequence.void
goStart()
Starts the sequence by going to the first step in the sequence.boolean
hasNext()
Determines if there is a next step in the sequence.boolean
Determines if there is a previous step in the sequence.Methods inherited from interface com.globalmentor.beans.PropertyBindable
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, hasPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
Methods inherited from interface com.globalmentor.beans.PropertyConstrainable
addVetoableChangeListener, addVetoableChangeListener, getVetoableChangeListeners, getVetoableChangeListeners, hasVetoableChangeListeners, removeVetoableChangeListener, removeVetoableChangeListener
-
Field Details
-
SEQUENCE_INDEX_PROPERTY
The bound, constrained property of the sequence index, of typeInteger
.
-
-
Method Details
-
getSequenceIndex
int getSequenceIndex()Returns the index in the sequence. This is a constrained property of typeInteger
.- Returns:
- The index in the sequence, or -1 if the sequence has not started.
-
goStart
void goStart()Starts the sequence by going to the first step in the sequence. -
goFirst
Goes to the first step in the sequence.- Throws:
PropertyVetoException
- if the sequence index change has been vetoed.
-
hasPrevious
boolean hasPrevious()Determines if there is a previous step in the sequence.- Returns:
true
if there is a previous step before the current one.
-
goPrevious
Goes to the previous step in the sequence. If there is no previous component, no action occurs.- Throws:
PropertyVetoException
- if the sequence index change has been vetoed.- See Also:
-
hasNext
boolean hasNext()Determines if there is a next step in the sequence.- Returns:
true
if there is a next step after the current one.
-
goNext
Goes to the next step in the sequence. If there is no next step, no action occurs.- Throws:
PropertyVetoException
- if the sequence index change has been vetoed.- See Also:
-
goFinish
void goFinish()Verifies the contents and finishes the sequence.
-