|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
java.awt.AWTEvent
com.bankframe.fe.statemachine.ext.connectors.swing.StateMachineEvent
public class StateMachineEvent
Field Summary |
---|
Constructor Summary | |
---|---|
StateMachineEvent(Object target,
String eventName)
Creates new Request. |
Method Summary | |
---|---|
void |
addParameter(String name,
String value)
Adds a parameter to this Event. |
String |
getApplicationName()
Returns the name of the application that should handle this request. |
Object |
getAttribute(String name)
|
Enumeration |
getAttributeNames()
|
String |
getEventName()
Returns the name of the event which needs to be handled for this request. |
String |
getParameter(String name)
|
Enumeration |
getParameterNames()
Returns the names of the parameters contained in this request. |
String[] |
getParameterValues(String parameterName)
Returns the values for the parameter of the given name. |
String |
getSessionId()
Returns the id of the UserSession for this request. |
String |
getStateId()
Returns the id of the state from which this request comes. |
void |
setApplicationName(String applicationName)
Sets the current Application name. |
void |
setAttribute(String name,
Object value)
|
void |
setSessionId(String sessionId)
Sets the ID of the current UserSession. |
void |
setStateId(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(Object target, String eventName)
target
- The target Component.eventName
- The statemachine event name.Method Detail |
---|
public String getApplicationName()
If this returns null the statemachine will use the default application returned by the ApplicationManager.
getApplicationName
in interface IRequest
public String getStateId()
If this returns null the statemachine will use the root state for the current application.
getStateId
in interface IRequest
public Enumeration getParameterNames()
getParameterNames
in interface IRequest
public String[] getParameterValues(String parameterName)
getParameterValues
in interface IRequest
parameterName
- the name of the parameter values to return.
public String getEventName()
This should not return null. If no event name is applicable it can return an empty string.
getEventName
in interface IRequest
public String getSessionId()
If this returns null the statemachine will create a new default session.
getSessionId
in interface IRequest
public void setApplicationName(String applicationName)
applicationName
- The current application name.public void setSessionId(String sessionId)
sessionId
- The ID of the current UserSession.public void setStateId(String stateId)
stateId
- The ID of the current State.public void addParameter(String name, String value)
name
- The name of the parameter.value
- The valus of the parameter.public Object getAttribute(String name)
IRequest.getAttribute(String)
public void setAttribute(String name, Object value)
IRequest.setAttribute(String, Object)
public String getParameter(String name)
IRequest.getParameter(String)
public Enumeration getAttributeNames()
IRequest.getAttributeNames()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |