|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.araneaframework.core.BaseComponent
org.araneaframework.core.BaseService
org.araneaframework.core.BaseApplicationService
A full featured Service with support for composite, eventlisteners, viewmodel.
| Nested Class Summary | |
protected class |
BaseApplicationService.CompositeImpl
|
protected class |
BaseApplicationService.ViewableImpl
|
class |
BaseApplicationService.ViewModel
|
| Nested classes inherited from class org.araneaframework.core.BaseService |
BaseService.ServiceImpl |
| Nested classes inherited from class org.araneaframework.core.BaseComponent |
BaseComponent.ComponentImpl |
| Nested classes inherited from class org.araneaframework.core.ApplicationService |
ApplicationService.ServiceViewModel |
| Nested classes inherited from class org.araneaframework.core.ApplicationComponent |
ApplicationComponent.ComponentViewModel |
| Nested classes inherited from class org.araneaframework.Component |
Component.Interface |
| Nested classes inherited from class org.araneaframework.Composite |
Composite.CompositeComponent, Composite.CompositeService, Composite.CompositeWidget, Composite.Interface |
| Nested classes inherited from class org.araneaframework.Viewable |
Viewable.Interface, Viewable.ViewableComponent, Viewable.ViewableService, Viewable.ViewableWidget |
| Nested classes inherited from class org.araneaframework.Service |
Service.Interface |
| Field Summary | |
static String |
ACTION_ID_ATTRIBUTE
Deprecated. |
| Fields inherited from class org.araneaframework.core.BaseService |
currentInputData, currentOutputData |
| Fields inherited from interface org.araneaframework.core.ApplicationService |
ACTION_HANDLER_ID_KEY, ACTION_PARAMETER_KEY, ACTION_PATH_KEY |
| Constructor Summary | |
BaseApplicationService()
|
|
| Method Summary | |
Composite.Interface |
_getComposite()
The factory method returning the implementation of the Composite. |
Viewable.Interface |
_getViewable()
|
protected void |
action(Path path,
InputData input,
OutputData output)
If path hasNextStep() routes to the correct child, otherwise calls the appropriate listener. |
void |
addActionListener(Object actionId,
ActionListener listener)
Adds the ActionListener listener with the specified action id. |
void |
addService(Object key,
Service child)
Adds a service with the specified key. |
void |
addService(Object key,
Service child,
Environment env)
Adds a service with the specified key. |
void |
clearActionlisteners(Object actionId)
Clears all the ActionListeners with the specified actionId. |
void |
disableService(Object key)
Disables the service with the specified key. |
void |
enableService(Object key)
Enables the service with the specified key. |
protected Object |
getActionId(InputData input)
Returns the id of the action based on the input. |
Environment |
getChildEnvironment()
Get the child Environment of this component. |
Map |
getChildren()
Returns an unmodifiable map of the children. |
protected Environment |
getChildServiceEnvironment()
Returns the the Environment of this Service by default. |
Environment |
getEnvironment()
Provides access to the Environment of this
Component. |
protected Object |
getViewModel()
Returns the view model. |
protected void |
handleAction(InputData input,
OutputData output)
Calls the approriate listener |
protected void |
propagate(Message message)
Forwards the message to the component and to all of its
children components. |
void |
putViewData(String key,
Object customDataItem)
Adds custom data to the widget view model (${widget.custom['key']}). |
void |
relocateService(Composite parent,
Environment newEnv,
Object keyFrom,
Object keyTo)
Relocates parent's child with keyFrom to this service with a new key keyTo. |
void |
relocateService(Composite parent,
Object keyFrom,
Object keyTo)
Relocates parent's child with keyFrom to this service with a new key keyTo. |
void |
removeActionListener(ActionListener listener)
Removes the ActionListener listener from this component. |
void |
removeService(Object key)
Removes the service with the specified key. |
void |
removeViewData(String key)
Removes the custom data under key. |
| Methods inherited from class org.araneaframework.core.BaseService |
_getService, getInputData, getOutputData, handleServiceException |
| Methods inherited from class org.araneaframework.core.BaseComponent |
_addComponent, _addComponent, _checkCall, _disableComponent, _enableComponent, _endCall, _endWaitingCall, _getChildren, _getComponent, _getDisabledChildren, _propagate, _relocateComponent, _removeComponent, _setEnvironment, _setScope, _startCall, _startWaitingCall, _strictCheckCall, _strictStartCall, _waitNoCall, destroy, disable, enable, getScope, handleException, init, isAlive, isDead, isInitialized |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.araneaframework.Component |
_getComponent, getScope, isAlive |
| Methods inherited from interface org.araneaframework.Service |
_getService |
| Field Detail |
public static final String ACTION_ID_ATTRIBUTE
| Constructor Detail |
public BaseApplicationService()
| Method Detail |
public Composite.Interface _getComposite()
Composite
_getComposite in interface Compositepublic Viewable.Interface _getViewable()
_getViewable in interface Viewable
public void addActionListener(Object actionId,
ActionListener listener)
public void removeActionListener(ActionListener listener)
public void clearActionlisteners(Object actionId)
actionId - the id of the ActionListeners.
public void putViewData(String key,
Object customDataItem)
removeViewData(String).
public void removeViewData(String key)
public Map getChildren()
public void addService(Object key,
Service child,
Environment env)
public void addService(Object key,
Service child)
getChildServiceEnvironment().
public void removeService(Object key)
public void relocateService(Composite parent,
Environment newEnv,
Object keyFrom,
Object keyTo)
parent - is the current parent of the child to be relocated.newEnv - the new Environment of the child.keyFrom - is the key of the child to be relocated.keyTo - is the the key, with which the child will be added to this StandardService.
public void relocateService(Composite parent,
Object keyFrom,
Object keyTo)
parent - is the current parent of the child to be relocated.keyFrom - is the key of the child to be relocated.keyTo - is the the key, with which the child will be added to this StandardService.public void enableService(Object key)
public void disableService(Object key)
public Environment getEnvironment()
ComponentEnvironment of this
Component.
getEnvironment in interface ComponentgetEnvironment in class BaseComponentpublic Environment getChildEnvironment()
ApplicationComponent
getChildEnvironment in interface ApplicationComponent
protected Object getViewModel()
throws Exception
Exception
protected Environment getChildServiceEnvironment()
throws Exception
Exceptionprotected Object getActionId(InputData input)
protected void propagate(Message message)
throws Exception
BaseComponentmessage to the component and to all of its
children components.
propagate in class BaseComponentmessage - A message to forward.
Exception - Any runtime exception that may occur.
protected void action(Path path,
InputData input,
OutputData output)
throws Exception
action in class BaseServicepath - The path of the component to whom the action is targeted.input - The request data.output - The response data.
Exception - Any runtime exception that may occur.
protected void handleAction(InputData input,
OutputData output)
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||