|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
jaxx.runtime.swing.wizard.WizardOperationActionThread<E,M,A>
E - le type des etapesM - le type de modeleA - le type d'action d'operationpublic abstract class WizardOperationActionThread<E extends WizardOperationStep,M extends WizardOperationModel<E>,A extends WizardOperationAction<E,M>>
Thread qui réalise les opérations.
Pour exécuter une nouvelle opération, on utilise la méthode
#launchOperation(SynchroActionWorker).
Note: Pour bloquer (ou débloquer) le thread, on utilise la méthode setWaiting(boolean)
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
protected A |
currentAction
|
protected java.lang.Class<M> |
modelClass
|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
WizardOperationActionThread(java.lang.Class<M> modelClass)
|
|
| Method Summary | |
|---|---|
void |
cancel()
|
protected void |
close()
La méthode pour nettoyer le thread, a la fermeture. |
protected abstract JAXXContext |
getContext()
|
A |
getCurrentAction()
|
protected abstract M |
getModel()
|
A |
launchOperation(E operation)
|
protected void |
lockThread()
|
void |
propertyChange(java.beans.PropertyChangeEvent evt)
|
void |
run()
|
protected void |
setWaiting(boolean waiting)
|
protected void |
unlockThread()
|
| 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.Class<M extends WizardOperationModel<E>> modelClass
protected A extends WizardOperationAction<E,M> currentAction
| Constructor Detail |
|---|
public WizardOperationActionThread(java.lang.Class<M> modelClass)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException| Method Detail |
|---|
protected abstract M getModel()
protected abstract JAXXContext getContext()
public void cancel()
public A launchOperation(E operation)
public A getCurrentAction()
public void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange in interface java.beans.PropertyChangeListenerpublic void run()
run in interface java.lang.Runnablerun in class java.lang.Threadprotected void close()
protected void setWaiting(boolean waiting)
protected void lockThread()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionprotected void unlockThread()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||