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

java.lang.Object
  extended by java.lang.Thread
      extended by jaxx.runtime.swing.wizard.WizardOperationActionThread<E,M,A>
Type Parameters:
E - le type des etapes
M - le type de modele
A - le type d'action d'operation
All Implemented Interfaces:
java.beans.PropertyChangeListener, java.lang.Runnable, java.util.EventListener

public abstract class WizardOperationActionThread<E extends WizardOperationStep,M extends WizardOperationModel<E>,A extends WizardOperationAction<E,M>>
extends java.lang.Thread
implements java.beans.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:
tony

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

modelClass

protected java.lang.Class<M extends WizardOperationModel<E>> modelClass

currentAction

protected A extends WizardOperationAction<E,M> currentAction
Constructor Detail

WizardOperationActionThread

public WizardOperationActionThread(java.lang.Class<M> modelClass)
                            throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException
Method Detail

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(java.beans.PropertyChangeEvent evt)
Specified by:
propertyChange in interface java.beans.PropertyChangeListener

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.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 java.lang.InterruptedException
Throws:
java.lang.InterruptedException

unlockThread

protected void unlockThread()


Copyright © 2008-2009 CodeLutin. All Rights Reserved.