L - defines the listener typeM - defines the basic message typepublic interface JacpContext<L,M>
| Modifier and Type | Method and Description |
|---|---|
L |
getEventHandler(M message)
Returns an event handler that handles messages to caller component
|
L |
getEventHandler(String targetId,
M message)
Returns an event handler that handles messages to target component
|
String |
getId()
Returns the id of the component.
|
String |
getName()
Returns the name of a component.
|
String |
getParentId()
Returns the ID of parent component/perspective.
|
ResourceBundle |
getResourceBundle()
Returns the component resource bundle.
|
boolean |
isActive()
Get the default active status of component.
|
void |
send(M message)
Send a message to caller component itself.
|
void |
send(String targetId,
M message)
Send a message to defined targetId.
|
void |
setActive(boolean active)
Set default active state of component.
|
void |
setExecutionTarget(String id)
Defines the perspective in which the component should executed in.
|
void |
setReturnTarget(String componentTargetId)
Set component targetId which is the target of a background component return
value; the return value will be handled like an average message and will
be delivered to targeted component.
|
void |
setTargetLayout(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(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(String targetId, M message)
message - ; the message to send to target.targetId - ; the targets component id.String getId()
String getParentId()
String getName()
ResourceBundle getResourceBundle()
boolean isActive()
void setActive(boolean active)
active - ; the component active state.void setReturnTarget(String componentTargetId) throws IllegalStateException
componentTargetId - ; represents a component id to return the value toIllegalStateExceptionvoid setExecutionTarget(String id) throws IllegalStateException
id, - the id of the parent perspective where the component should be executed in.IllegalStateExceptionvoid setTargetLayout(String targetLayout) throws IllegalStateException
targetLayout, - a target layout label.IllegalStateExceptionCopyright © 2014. All rights reserved.