|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.btt.base.BTTProcessorHandler
com.ibm.btt.automaton.DSEState
com.ibm.btt.rcp.xui.automaton.BTTXUIState
@ATTR(value={"context#String#IMPLIED","finalPage#String#IMPLIED"}) public class BTTXUIState
This class represents a state for an XUI processor.
Nested Class Summary | |
---|---|
(package private) class |
BTTXUIState.XUIRunnable
|
Field Summary | |
---|---|
(package private) java.lang.Runnable |
openXUIRunnable
|
(package private) BTTXUIState.XUIRunnable |
xuiFinalRunnable
|
protected Semaphore |
xuiRepliedSemaphore
Semaphore where the execution waits until the XUI raises an XUIEvent. |
Fields inherited from class com.ibm.btt.automaton.DSEState |
---|
ABORT_PROCESS, actionHandlers, CHANGE_STATE, CONDITIONS, CONTINUE, DEFAULT_TYPE, done, ENTRY_ACTIONS, entryActionsTags, EXECUTE_ACTION_AND_CHANGESTATE, EXIT_ACTIONS, exitActionsTags, exitEventName, FINAL_TYPE, ignoreEntryActions, INITIAL_TYPE, name, PAGE_TYPE, pqThread, processor, runningModeFlag, sharedNotifiers, SKIP_ACTION, SKIP_ALL_ACTIONS, SKIP_CONDITIONS, SUBFLOW_TYPE, suspendedThread, SUSPENDTIME, tag, transitions, TRANSITIONS, type, TYPE, TYPE_ID_INFO, typeIdInfo |
Constructor Summary | |
---|---|
BTTXUIState()
|
Method Summary | |
---|---|
void |
activate()
Activates an XUI state. |
protected void |
fireDSEChangeStateEvent(java.lang.String targetStateName,
boolean ignoreEntryActionsFlag,
boolean ignoreExitActionsFlag,
java.lang.String transitionName)
Dispatches a change state event with required information. |
void |
fireXUIReplyEvent()
Signals the semaphore when the state's activate method is waiting for the XUI end. |
Context |
getContext()
Get state context |
java.lang.String |
getFinalPage()
Get final page path |
void |
handleXUIEvent(IXUIEventObject event)
Signals the semaphore when the state's activate method is waiting for the XUI end. |
java.lang.Object |
initializeFrom(Tag aTag)
This method begins by resetting the state attributes to null, so the state object can be reused, then the method uses the Tag of the current state to initialize a State with an Id, type, and the typeIdInfo. |
void |
setContext(Context context)
Set state context |
void |
setFinalPage(java.lang.String finalPage)
Set final page path |
protected void |
signalEvent()
Creates and signals the event that the state processes. |
void |
widgetDisposed(org.eclipse.swt.events.DisposeEvent arg0)
Make the thread go on when the view is closed and xuiRepliedSemaphore is not fired. |
Methods inherited from class com.ibm.btt.base.BTTProcessorHandler |
---|
handleEvent, handleEvent, stopHandlingEvent, stopHandlingEvent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.ibm.btt.base.ProcessorHandler |
---|
handleEvent, handleEvent, stopHandlingEvent, stopHandlingEvent |
Field Detail |
---|
protected Semaphore xuiRepliedSemaphore
java.lang.Runnable openXUIRunnable
BTTXUIState.XUIRunnable xuiFinalRunnable
Constructor Detail |
---|
public BTTXUIState()
Method Detail |
---|
public java.lang.Object initializeFrom(Tag aTag) throws java.io.IOException, DSEException
DSEState
initializeFrom
in interface State
initializeFrom
in class DSEState
aTag
- com.ibm.btt.base.Tag Contains the name and attributes of the
object to be created.
java.io.IOException
- The object can not be created.
DSEException
public void activate() throws DSEInvalidArgumentException, DSEProcessorException
This method waits until this event is received. It then tries to raise the event created from the information received from the XUI. The state processes this event and put it on the queue. Processing the event queue provokes a state change.
activate
in interface State
activate
in class DSEState
DSEInvalidArgumentException
DSEProcessorException
public void fireXUIReplyEvent()
public void handleXUIEvent(IXUIEventObject event)
handleXUIEvent
in interface IXUIEventListener
event
- com.ibm.btt.rcp.xui.event.IXUIEventObjectprotected void signalEvent() throws DSEProcessorException
DSEProcessorException
protected void fireDSEChangeStateEvent(java.lang.String targetStateName, boolean ignoreEntryActionsFlag, boolean ignoreExitActionsFlag, java.lang.String transitionName) throws DSEProcessorException
targetStateName
- java.lang.StringignoreEntryActionsFlag
- booleanignoreExitActionsFlag
- booleantransitionName
- java.lang.String
DSEProcessorException
public void widgetDisposed(org.eclipse.swt.events.DisposeEvent arg0)
widgetDisposed
in interface org.eclipse.swt.events.DisposeListener
arg0
- org.eclipse.swt.events.DisposeEventpublic Context getContext()
public void setContext(Context context)
context
- public java.lang.String getFinalPage()
public void setFinalPage(java.lang.String finalPage)
finalPage
-
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |