L
- defines the action listener typeA
- defines the basic action typeM
- defines the basic message typepublic interface ISubComponent<L,A,M> extends IComponent<L,A,M>
Modifier and Type | Method and Description |
---|---|
<X extends IComponentHandle<?,L,A,M>> |
getComponentHandle()
Returns the component handle class, this is the users implementation of the component.
|
java.lang.String |
getExecutionTarget()
Returns the target id where component will be displayed in.
|
IAction<A,M> |
getNextIncomingMessage()
Returns next message in pipe.
|
java.lang.String |
getParentId()
returns the id of parent component
|
boolean |
hasIncomingMessage()
Returns true if component has message in pipe.
|
void |
initEnv(java.lang.String parentId,
java.util.concurrent.BlockingQueue<IAction<A,M>> messageQueue)
Set parentId and global message queue to component
|
boolean |
isBlocked()
Component is blocked when executed in thread.
|
void |
lock()
Lock Component for execution in thread.
|
void |
putIncomingMessage(IAction<A,M> action)
Add new message to component.
|
void |
release()
Release lock after execution in thread.
|
<X extends IComponentHandle<?,L,A,M>> |
setComponentHandle(X handle)
Set the component handle class.
|
void |
setExecutionTarget(java.lang.String target)
Set the target id where component will be displayed in.
|
getContext, getLocaleID, getResourceBundleLocation, isStarted, setLocaleID, setResourceBundleLocation, setStarted
java.lang.String getExecutionTarget()
void setExecutionTarget(java.lang.String target)
target
- boolean hasIncomingMessage()
void putIncomingMessage(IAction<A,M> action)
action
- IAction<A,M> getNextIncomingMessage()
boolean isBlocked()
void lock()
void release()
java.lang.String getParentId()
void initEnv(java.lang.String parentId, java.util.concurrent.BlockingQueue<IAction<A,M>> messageQueue)
messageQueue
- <X extends IComponentHandle<?,L,A,M>> X getComponentHandle()
<X extends IComponentHandle<?,L,A,M>> void setComponentHandle(X handle)
X
- handle
-