|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.EventObject | +--java.awt.AWTEvent | +--com.bankframe.fe.statemachine.ext.connectors.swing.StateMachineEvent
Field Summary |
Fields inherited from class java.awt.AWTEvent |
ACTION_EVENT_MASK, ADJUSTMENT_EVENT_MASK, COMPONENT_EVENT_MASK, CONTAINER_EVENT_MASK, FOCUS_EVENT_MASK, HIERARCHY_BOUNDS_EVENT_MASK, HIERARCHY_EVENT_MASK, INPUT_METHOD_EVENT_MASK, INVOCATION_EVENT_MASK, ITEM_EVENT_MASK, KEY_EVENT_MASK, MOUSE_EVENT_MASK, MOUSE_MOTION_EVENT_MASK, MOUSE_WHEEL_EVENT_MASK, PAINT_EVENT_MASK, RESERVED_ID_MAX, TEXT_EVENT_MASK, WINDOW_EVENT_MASK, WINDOW_FOCUS_EVENT_MASK, WINDOW_STATE_EVENT_MASK |
Constructor Summary | |
StateMachineEvent(java.lang.Object target,
java.lang.String eventName)
Creates new Request. |
Method Summary | |
void |
addParameter(java.lang.String name,
java.lang.String value)
Adds a parameter to this Event. |
java.lang.String |
getApplicationName()
Returns the name of the application that should handle this request. |
java.lang.Object |
getAttribute(java.lang.String name)
|
java.util.Enumeration |
getAttributeNames()
|
java.lang.String |
getEventName()
Returns the name of the event which needs to be handled for this request. |
java.lang.String |
getParameter(java.lang.String name)
|
java.util.Enumeration |
getParameterNames()
Returns the names of the parameters contained in this request. |
java.lang.String[] |
getParameterValues(java.lang.String parameterName)
Returns the values for the parameter of the given name. |
java.lang.String |
getSessionId()
Returns the id of the UserSession for this request. |
java.lang.String |
getStateId()
Returns the id of the state from which this request comes. |
void |
setApplicationName(java.lang.String applicationName)
Sets the current Application name. |
void |
setAttribute(java.lang.String name,
java.lang.Object value)
|
void |
setSessionId(java.lang.String sessionId)
Sets the ID of the current UserSession. |
void |
setStateId(java.lang.String stateId)
Sets the ID of the current State. |
Methods inherited from class java.awt.AWTEvent |
getID, paramString, setSource, toString |
Methods inherited from class java.util.EventObject |
getSource |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public StateMachineEvent(java.lang.Object target, java.lang.String eventName)
target
- The target Component.eventName
- The statemachine event name.Method Detail |
public java.lang.String getApplicationName()
If this returns null the statemachine will use the default application returned by the ApplicationManager.
getApplicationName
in interface IRequest
public java.lang.String getStateId()
If this returns null the statemachine will use the root state for the current application.
getStateId
in interface IRequest
public java.util.Enumeration getParameterNames()
getParameterNames
in interface IRequest
public java.lang.String[] getParameterValues(java.lang.String parameterName)
getParameterValues
in interface IRequest
parameterName
- the name of the parameter values to return.
public java.lang.String getEventName()
This should not return null. If no event name is applicable it can return an empty string.
getEventName
in interface IRequest
public java.lang.String getSessionId()
If this returns null the statemachine will create a new default session.
getSessionId
in interface IRequest
public void setApplicationName(java.lang.String applicationName)
applicationName
- The current application name.public void setSessionId(java.lang.String sessionId)
sessionId
- The ID of the current UserSession.public void setStateId(java.lang.String stateId)
stateId
- The ID of the current State.public void addParameter(java.lang.String name, java.lang.String value)
name
- The name of the parameter.value
- The valus of the parameter.public java.lang.Object getAttribute(java.lang.String name)
getAttribute
in interface IRequest
IRequest.getAttribute(String)
public void setAttribute(java.lang.String name, java.lang.Object value)
setAttribute
in interface IRequest
IRequest.setAttribute(String, Object)
public java.lang.String getParameter(java.lang.String name)
getParameter
in interface IRequest
IRequest.getParameter(String)
public java.util.Enumeration getAttributeNames()
getAttributeNames
in interface IRequest
IRequest.getAttributeNames()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |