jaxx.runtime.swing.wizard
Class WizardOperationAction<E extends WizardOperationStep,M extends WizardOperationModel<E>>

java.lang.Object
  extended by javax.swing.SwingWorker<WizardOperationState,java.lang.String>
      extended by jaxx.runtime.swing.wizard.WizardOperationAction<E,M>
Type Parameters:
E - le type d'étapes
M - le type de modèle
All Implemented Interfaces:
java.lang.Runnable, java.util.concurrent.Future<WizardOperationState>, java.util.concurrent.RunnableFuture<WizardOperationState>

public abstract class WizardOperationAction<E extends WizardOperationStep,M extends WizardOperationModel<E>>
extends javax.swing.SwingWorker<WizardOperationState,java.lang.String>

La classe de base a implanter pour definir l'action d'une operation dans un wizard.

Since:
1.3
Author:
tony

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.SwingWorker
javax.swing.SwingWorker.StateValue
 
Constructor Summary
WizardOperationAction(E operation)
           
 
Method Summary
abstract  void beforeAction(JAXXContext context, M model)
           
abstract  WizardOperationState doAction(M model)
           
protected  WizardOperationState doInBackground()
           
protected  void done()
           
protected abstract  JAXXContext getContext()
           
 java.lang.Exception getError()
           
protected abstract  M getModel()
           
 E getOperation()
           
 WizardOperationState getOperationState()
           
abstract  WizardOperationState onCancel(M model, java.lang.Exception e)
           
abstract  WizardOperationState onError(M model, java.lang.Exception e)
           
 void sendMessage(java.lang.String msg)
           
 void setError(java.lang.Exception e)
           
abstract  void start(JAXXContext context)
           
 java.lang.String toString()
           
 
Methods inherited from class javax.swing.SwingWorker
addPropertyChangeListener, cancel, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, process, publish, removePropertyChangeListener, run, setProgress
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WizardOperationAction

public WizardOperationAction(E operation)
Method Detail

getOperation

public E getOperation()

getError

public java.lang.Exception getError()

setError

public void setError(java.lang.Exception e)

sendMessage

public void sendMessage(java.lang.String msg)

start

public abstract void start(JAXXContext context)

beforeAction

public abstract void beforeAction(JAXXContext context,
                                  M model)
                           throws java.lang.Exception
Throws:
java.lang.Exception

doAction

public abstract WizardOperationState doAction(M model)
                                       throws java.lang.Exception
Throws:
java.lang.Exception

onError

public abstract WizardOperationState onError(M model,
                                             java.lang.Exception e)

onCancel

public abstract WizardOperationState onCancel(M model,
                                              java.lang.Exception e)

getModel

protected abstract M getModel()

getOperationState

public WizardOperationState getOperationState()

getContext

protected abstract JAXXContext getContext()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

doInBackground

protected WizardOperationState doInBackground()
                                       throws java.lang.Exception
Specified by:
doInBackground in class javax.swing.SwingWorker<WizardOperationState,java.lang.String>
Throws:
java.lang.Exception

done

protected void done()
Overrides:
done in class javax.swing.SwingWorker<WizardOperationState,java.lang.String>


Copyright © 2008-2010 CodeLutin. All Rights Reserved.