|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.refractions.udig.catalog.ui.workflow.Workflow.State
net.refractions.udig.catalog.ui.workflow.IntermediateState
public class IntermediateState
A state that tracks intermediate pages. They have no purpose beyond matching the state of a wizard page.
Constructor Summary | |
---|---|
IntermediateState(int index,
int numberOfPages,
Workflow.State endState)
New instance |
Method Summary | |
---|---|
Workflow.State |
getEndState()
|
int |
getIndex()
|
java.lang.String |
getName()
|
boolean |
hasNext()
Determines if the state can dynamically create a new state to be the next active state of the workflow. |
Workflow.State |
next()
The final method in the lifecycle of the state. |
boolean |
run(IProgressMonitor monitor)
Performs any "hard" work. |
Methods inherited from class net.refractions.udig.catalog.ui.workflow.Workflow.State |
---|
getPreviousState, getWorkflow, init, setPrevious, setWorkflow |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IntermediateState(int index, int numberOfPages, Workflow.State endState)
numberOfPages
- the number of pages that this state must track. The last page will be the endStateendState
- the state that must be satisfied for all the pages to be satisfied.Method Detail |
---|
public boolean hasNext()
Workflow.State
next() != null
. However some
implemtnations require that next() be called only once, as it is a
lifecycle event.
hasNext
in class Workflow.State
public Workflow.State next()
Workflow.State
next
in class Workflow.State
public boolean run(IProgressMonitor monitor) throws java.io.IOException
Workflow.State
run
in class Workflow.State
monitor
- A progress monitor.
java.io.IOException
public java.lang.String getName()
getName
in class Workflow.State
public Workflow.State getEndState()
public int getIndex()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |