java.lang.Object
javax.swing.SwingWorker<WizardOperationState,java.lang.String>
jaxx.runtime.swing.wizard.WizardOperationAction<E,M>
- Type Parameters:
E - le type d'étapesM - 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 classes/interfaces inherited from class javax.swing.SwingWorker |
javax.swing.SwingWorker.StateValue |
| 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 |
WizardOperationAction
public WizardOperationAction(E operation)
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-2009 CodeLutin. All Rights Reserved.