M
- defines the type of messageA
- defines the type of ActionEventpublic interface IAction<A,M>
extends java.lang.Cloneable
Modifier and Type | Method and Description |
---|---|
void |
addMessage(java.lang.String targetId,
M message)
Set message for a specified target component. the component.
|
IAction<A,M> |
clone()
Clone action and containing event.
|
M |
getMessage()
Get the action message.
|
A |
getSourceEvent()
Get source of this action event.
|
java.lang.String |
getSourceId()
Get the caller id.
|
java.lang.String |
getTargetId()
Returns action target id.
|
<T> T |
getTypedMessage(java.lang.Class<T> clazz)
Returns a typed message, if applicable.
|
boolean |
isMessage(java.lang.Object object)
Check if message equals given input.
|
<T> boolean |
isMessageType(java.lang.Class<T> clazz)
Checks if message is type of a given class.
|
void |
setMessage(M message)
Set message for target component.
|
void setMessage(M message)
message
- ; the message set to actionvoid addMessage(java.lang.String targetId, M message)
targetId
- ; the actions target idmessage
- ; the message set to actionM getMessage()
java.lang.String getSourceId()
A getSourceEvent()
IAction<A,M> clone()
java.lang.String getTargetId()
<T> boolean isMessageType(java.lang.Class<T> clazz)
T
- clazz
- <T> T getTypedMessage(java.lang.Class<T> clazz)
T
- clazz
- boolean isMessage(java.lang.Object object)
object
-