java.lang.Object
java.lang.Thread
jaxx.runtime.swing.wizard.WizardOperationActionThread<E,M,A>
- Type Parameters:
E - le type des etapesM - le type de modeleA - le type d'action d'operation
- All Implemented Interfaces:
- PropertyChangeListener, Runnable, EventListener
public abstract class WizardOperationActionThread<E extends WizardOperationStep,M extends WizardOperationModel<E>,A extends WizardOperationAction<E,M>>
- extends Thread
- implements PropertyChangeListener
Thread qui réalise les opérations.
Pour exécuter une nouvelle opération, on utilise la méthode launchOperation(WizardOperationStep).
Note: Pour bloquer (ou débloquer) le thread, on utilise la méthode setWaiting(boolean)
- Since:
- 1.3
- Author:
- tchemit
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
modelClass
protected Class<M extends WizardOperationModel<E>> modelClass
currentAction
protected A extends WizardOperationAction<E,M> currentAction
WizardOperationActionThread
public WizardOperationActionThread(Class<M> modelClass)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
getModel
protected abstract M getModel()
getContext
protected abstract JAXXContext getContext()
cancel
public void cancel()
launchOperation
public A launchOperation(E operation)
getCurrentAction
public A getCurrentAction()
propertyChange
public void propertyChange(PropertyChangeEvent evt)
- Specified by:
propertyChange in interface PropertyChangeListener
run
public void run()
- Specified by:
run in interface Runnable- Overrides:
run in class Thread
close
protected void close()
- La méthode pour nettoyer le thread, a la fermeture.
setWaiting
protected void setWaiting(boolean waiting)
lockThread
protected void lockThread()
throws InterruptedException
- Throws:
InterruptedException
unlockThread
protected void unlockThread()
Copyright © 2008-2010 CodeLutin. All Rights Reserved.