L - defines the listener typeM - defines the basic message typepublic interface Context<L,M>
| Modifier and Type | Method and Description |
|---|---|
L |
getEventHandler(M message)
Returns an event handler that handles messages to caller component
|
L |
getEventHandler(java.lang.String targetId,
M message)
Returns an event handler that handles messages to target component
|
java.lang.String |
getId()
Returns the id of the component.
|
java.lang.String |
getName()
Returns the name of a component.
|
java.lang.String |
getParentId()
Returns the ID of parent component/perspective.
|
java.util.ResourceBundle |
getResourceBundle()
Returns the components resource bundle.
|
boolean |
isActive()
Get the default active status of component.
|
void |
send(M message)
Send a message to caller component itself.
|
void |
send(java.lang.String targetId,
M message)
Send a message to defined targetId.
|
void |
setActive(boolean active)
Set default active state of component.
|
void |
setExecutionTarget(java.lang.String id)
Defines the perspective in which the component should executed in.
|
void |
setReturnTarget(java.lang.String componentTargetId)
Set component targetId which is the target of a background components return
value; the return value will be handled like an average message and will
be delivered to targeted component.
|
void |
setTargetLayout(java.lang.String targetLayout)
Defines the target layoutId, where the UI component should appear in,the layout is registered in perspective and is a placeholder for the component.
|
void send(M message)
message, - The message object.void send(java.lang.String targetId,
M message)
targetId, - The target id for the message.message, - The message object.L getEventHandler(M message)
message, - The message object.L getEventHandler(java.lang.String targetId, M message)
message - ; the message to send to target.targetId - ; the targets component id.java.lang.String getId()
java.lang.String getParentId()
java.lang.String getName()
java.util.ResourceBundle getResourceBundle()
boolean isActive()
void setActive(boolean active)
active - ; the component active state.void setReturnTarget(java.lang.String componentTargetId)
throws java.lang.IllegalStateException
componentTargetId - ; represents a component id to return the value tojava.lang.IllegalStateExceptionvoid setExecutionTarget(java.lang.String id)
throws java.lang.IllegalStateException
id, - the id of the parent perspective where the component should be executed in.java.lang.IllegalStateExceptionvoid setTargetLayout(java.lang.String targetLayout)
throws java.lang.IllegalStateException
targetLayout, - a target layout label.java.lang.IllegalStateException