java.lang.Object
javax.swing.SwingWorker<WizardOperationState,String>
jaxx.runtime.swing.wizard.WizardOperationAction<E,M>
- Type Parameters:
E - le type d'étapesM - le type de modèle
- All Implemented Interfaces:
- Runnable, Future<WizardOperationState>, RunnableFuture<WizardOperationState>
public abstract class WizardOperationAction<E extends WizardOperationStep,M extends WizardOperationModel<E>>
- extends SwingWorker<WizardOperationState,String>
La classe de base a implanter pour definir l'action d'une operation
dans un wizard.
- Since:
- 1.3
- Author:
- tony
| Methods inherited from class javax.swing.SwingWorker |
addPropertyChangeListener, cancel, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, process, publish, removePropertyChangeListener, run, setProgress |
WizardOperationAction
public WizardOperationAction(E operation)
getOperation
public E getOperation()
getError
public Exception getError()
setError
public void setError(Exception e)
sendMessage
public void sendMessage(String msg)
start
public abstract void start(JAXXContext context)
beforeAction
public abstract void beforeAction(JAXXContext context,
M model)
throws Exception
- Throws:
Exception
doAction
public abstract WizardOperationState doAction(M model)
throws Exception
- Throws:
Exception
onError
public abstract WizardOperationState onError(M model,
Exception e)
onCancel
public abstract WizardOperationState onCancel(M model,
Exception e)
getModel
protected abstract M getModel()
getOperationState
public WizardOperationState getOperationState()
getContext
protected abstract JAXXContext getContext()
toString
public String toString()
- Overrides:
toString in class Object
doInBackground
protected WizardOperationState doInBackground()
throws Exception
- Specified by:
doInBackground in class SwingWorker<WizardOperationState,String>
- Throws:
Exception
done
protected void done()
- Overrides:
done in class SwingWorker<WizardOperationState,String>
Copyright © 2008-2010 CodeLutin. All Rights Reserved.