IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.rcp.xui.automaton
Class BTTXUIProcessor

java.lang.Object
  extended by com.ibm.btt.base.DSENotifier
      extended by com.ibm.btt.automaton.DSEProcessor
          extended by com.ibm.btt.rcp.xui.automaton.BTTXUIProcessor
All Implemented Interfaces:
Executable, Processor, Cacheable, Notifier, java.io.Externalizable, java.io.Serializable, java.util.EventListener, org.eclipse.swt.events.DisposeListener, org.eclipse.swt.internal.SWTEventListener

public class BTTXUIProcessor
extends DSEProcessor
implements org.eclipse.swt.events.DisposeListener

This class provides the behaviour of the processor class plus the required XUI interface. It allows to model XUI as a state in automaton.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.ibm.btt.automaton.DSEProcessor
ABORTED, aProcessorStatusChangedListener, CHANGESTATE, CLEAN_EVENTS_QUEUE_ON_SWITCH, cleanQueueOnSwitch, COMPLETED, context, currentState, eventQueue, externalizer, INITIALIZED, NOT_INITIALIZED, processorId, processorName, RUNNING, stateTag, status, STATUSCHANGEEVENT, SUSPENDED, TERMINATEEVENT
 
Fields inherited from class com.ibm.btt.base.DSENotifier
handlersList, name
 
Fields inherited from interface com.ibm.btt.automaton.Processor
COMPID
 
Constructor Summary
BTTXUIProcessor()
          This constructor creates a BTTXUIProcessor object.
BTTXUIProcessor(boolean mustRegister)
          This constructor creates a BTTXUIProcessor object.
BTTXUIProcessor(java.lang.String aName)
          This constructor creates a BTTXUIProcessor object.
BTTXUIProcessor(java.lang.String aName, java.lang.String aTID)
          This constructor creates a BTTXUIProcessor object.
 
Method Summary
 void close()
          call DSEProcessor.close() to unchain the context and closes the processor, which releases the currentState and eventQueue objects.
 org.eclipse.swt.widgets.Composite getParentComposite()
           
 void setParentComposite(org.eclipse.swt.widgets.Composite parentComposite)
          Keep the value of parentComposite, and register the processor as parentComposite's DisposeListener.
 void widgetDisposed(org.eclipse.swt.events.DisposeEvent arg0)
          Signals the semaphore when widget is disposed and the current state's activate method is waiting for the XUI end.
 
Methods inherited from class com.ibm.btt.automaton.DSEProcessor
abort, addProcessorStatusChangedListener, changeState, changeState, cleanEventQueue, clearKeyedCollection, execute, externalizer, fireProcessorStatusChangedEvent, fireProcessorTerminatedEvent, getContext, getCurrentState, getCurrentStateType, getEventQueue, getExternalizer, getInitialStateTag, getProcessorId, getProcessorName, getRefServiceTags, getService, getStateTag, getStateTagList, getStatus, getTag, initialize, initializeFrom, initializeKeyedCollectionValueFrom, isCacheable, isCleanQueueOnSwitch, readExternal, readExternal, readObject, reinitialize, removeExternal, resume, setCleanQueueOnSwitch, setContext, setCurrentState, setCurrentStateType, setEventQueue, setExternalizer, setProcessorId, setProcessorName, setStatus, setTag, suspend, terminate, toString, toStrings, toTags, writeExternal, writeExternal
 
Methods inherited from class com.ibm.btt.base.DSENotifier
addHandler, getHandlersList, getName, removeHandler, setName, signalEvent, signalEvent, signalEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ibm.btt.automaton.Processor
addHandler, getHandlersList, signalEvent
 
Methods inherited from interface com.ibm.btt.base.Cacheable
getName
 
Methods inherited from interface com.ibm.btt.base.Externalizable
getName, setName
 

Constructor Detail

BTTXUIProcessor

public BTTXUIProcessor()
This constructor creates a BTTXUIProcessor object.


BTTXUIProcessor

public BTTXUIProcessor(java.lang.String aName)
This constructor creates a BTTXUIProcessor object.

Parameters:
aName - java.lang.String

BTTXUIProcessor

public BTTXUIProcessor(java.lang.String aName,
                       java.lang.String aTID)
This constructor creates a BTTXUIProcessor object.

Parameters:
aName - java.lang.String
aTID - java.lang.String

BTTXUIProcessor

public BTTXUIProcessor(boolean mustRegister)
This constructor creates a BTTXUIProcessor object.

Parameters:
mustRegister - boolean
Method Detail

getParentComposite

public org.eclipse.swt.widgets.Composite getParentComposite()

setParentComposite

public void setParentComposite(org.eclipse.swt.widgets.Composite parentComposite)
Keep the value of parentComposite, and register the processor as parentComposite's DisposeListener.

Parameters:
parentComposite - org.eclipse.swt.widgets.Composite

widgetDisposed

public void widgetDisposed(org.eclipse.swt.events.DisposeEvent arg0)
Signals the semaphore when widget is disposed and the current state's activate method is waiting for the XUI end. And then abort the processor.

Specified by:
widgetDisposed in interface org.eclipse.swt.events.DisposeListener
Parameters:
arg0 - org.eclipse.swt.events.DisposeEvent

close

public void close()
           throws DSEInvalidRequestException,
                  DSEObjectNotFoundException
call DSEProcessor.close() to unchain the context and closes the processor, which releases the currentState and eventQueue objects. And then unregister the processor as parentComposite's DisposeListener

Specified by:
close in interface Processor
Overrides:
close in class DSEProcessor
Throws:
DSEInvalidRequestException
DSEObjectNotFoundException

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2010