net.refractions.udig.catalog.ui.workflow
Interface Workflow.Listener

All Known Implementing Classes:
Workflow.Runner, WorkflowWizardDialog
Enclosing class:
Workflow

public static interface 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.
 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.
 

Method Detail

forward

void forward(Workflow.State current,
             Workflow.State prev)
Event thrown when the pipe moves to a new state in the forward direction.

Parameters:
current - The current state.
prev - The state before the current state.

backward

void backward(Workflow.State current,
              Workflow.State next)
Event thrown when the pipe moves to a new state in a backward direction.

Parameters:
current - The curent state.
next - The state after the current state.

statePassed

void statePassed(Workflow.State state)
Event thrown when a state successfully completes its job.

Parameters:
state - The current state.

stateFailed

void stateFailed(Workflow.State state)
Event thrown when a state can not complete its job.

Parameters:
state - The current state.

started

void started(Workflow.State first)
Event thrown when the workflow is started.

Parameters:
first - The first state of the pipe

finished

void finished(Workflow.State last)
Event thrown when workflow is finished.

Parameters:
last - The last state of the pipe