net.refractions.udig.catalog.ui.workflow
Class Workflow.Runner

java.lang.Object
  extended by net.refractions.udig.catalog.ui.workflow.Workflow.Runner
All Implemented Interfaces:
Workflow.Listener
Enclosing class:
Workflow

public static class Workflow.Runner
extends java.lang.Object
implements Workflow.Listener


Method Summary
 void backward(Workflow.State current, Workflow.State next)
          Event thrown when the pipe moves to a new state in a backward direction.
 void finished(Workflow.State last)
          Event thrown when workflow is finished.
 void forward(Workflow.State current, Workflow.State prev)
          Event thrown when the pipe moves to a new state in the forward direction.
 boolean run(IProgressMonitor monitor)
           
 void started(Workflow.State first)
          Event thrown when the workflow is started.
 void stateFailed(Workflow.State state)
          Event thrown when a state can not complete its job.
 void statePassed(Workflow.State state)
          Event thrown when a state successfully completes its job.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

run

public boolean run(IProgressMonitor monitor)

forward

public void forward(Workflow.State current,
                    Workflow.State prev)
Description copied from interface: Workflow.Listener
Event thrown when the pipe moves to a new state in the forward direction.

Specified by:
forward in interface Workflow.Listener
Parameters:
current - The current state.
prev - The state before the current state.

backward

public void backward(Workflow.State current,
                     Workflow.State next)
Description copied from interface: Workflow.Listener
Event thrown when the pipe moves to a new state in a backward direction.

Specified by:
backward in interface Workflow.Listener
Parameters:
current - The curent state.
next - The state after the current state.

statePassed

public void statePassed(Workflow.State state)
Description copied from interface: Workflow.Listener
Event thrown when a state successfully completes its job.

Specified by:
statePassed in interface Workflow.Listener
Parameters:
state - The current state.

stateFailed

public void stateFailed(Workflow.State state)
Description copied from interface: Workflow.Listener
Event thrown when a state can not complete its job.

Specified by:
stateFailed in interface Workflow.Listener
Parameters:
state - The current state.

started

public void started(Workflow.State first)
Description copied from interface: Workflow.Listener
Event thrown when the workflow is started.

Specified by:
started in interface Workflow.Listener
Parameters:
first - The first state of the pipe

finished

public void finished(Workflow.State last)
Description copied from interface: Workflow.Listener
Event thrown when workflow is finished.

Specified by:
finished in interface Workflow.Listener
Parameters:
last - The last state of the pipe