| java.lang.Object org.araneaframework.core.BaseComponent org.araneaframework.core.BaseService org.araneaframework.core.BaseApplicationService
All known Subclasses: org.araneaframework.mock.core.MockEventfulStandardService,
BaseApplicationService | abstract public class BaseApplicationService extends BaseService implements ApplicationService(Code) | | A full featured Service with support for composite, eventlisteners, viewmodel.
|
Method Summary | |
public Composite.Interface | _getComposite() | public 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. | public void | addActionListener(Object actionId, ActionListener listener) Adds the ActionListener listener with the specified action id. | public void | addService(Object key, Service child, Environment env) Adds a service with the specified key. | public void | addService(Object key, Service child) Adds a service with the specified key. | public void | clearActionlisteners(Object actionId) Clears all the ActionListeners with the specified actionId. | public void | disableService(Object key) Disables the service with the specified key. | public 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. | public Environment | getChildEnvironment() | protected Environment | getChildServiceEnvironment() Returns the the Environment of this Service by default. | public Map | getChildren() Returns an unmodifiable map of the children. | public Environment | getEnvironment() | protected Object | getViewModel() Returns the view model. | protected void | handleAction(InputData input, OutputData output) | protected void | propagate(Message message) | public void | putViewData(String key, Object customDataItem) Adds custom data to the widget view model (${widget.custom['key']}). | public void | relocateService(Composite parent, Environment newEnv, Object keyFrom, Object keyTo) Relocates parent's child with keyFrom to this service with a new key keyTo. | public void | relocateService(Composite parent, Object keyFrom, Object keyTo) Relocates parent's child with keyFrom to this service with a new key keyTo. | public void | removeActionListener(ActionListener listener) Removes the ActionListener listener from this component. | public void | removeService(Object key) Removes the service with the specified key. | public void | removeViewData(String key) Removes the custom data under key. |
ACTION_ID_ATTRIBUTE | final public static String ACTION_ID_ATTRIBUTE(Code) | | The attribute of the action id.
|
action | protected void action(Path path, InputData input, OutputData output) throws Exception(Code) | | If path hasNextStep() routes to the correct child, otherwise calls the
appropriate listener.
|
addActionListener | public void addActionListener(Object actionId, ActionListener listener)(Code) | | Adds the ActionListener listener with the specified action id.
|
addService | public void addService(Object key, Service child, Environment env)(Code) | | Adds a service with the specified key. Allready initilized services cannot be added. Duplicate
keys not allowed. The child is initialized with the Environment env.
|
addService | public void addService(Object key, Service child)(Code) | | Adds a service with the specified key. Allready initilized services cannot be added. Duplicate
keys not allowed. The child is initialized with the Environment from
getChildServiceEnvironment() .
|
clearActionlisteners | public void clearActionlisteners(Object actionId)(Code) | | Clears all the ActionListeners with the specified actionId.
Parameters: actionId - the id of the ActionListeners. |
disableService | public void disableService(Object key)(Code) | | Disables the service with the specified key. Only a enabled service can be disabled. A disabled
service does not get any actions routed to them.
|
enableService | public void enableService(Object key)(Code) | | Enables the service with the specified key. Only a disabled service can be enabled.
|
getActionId | protected Object getActionId(InputData input)(Code) | | Returns the id of the action based on the input. Uses the ACTION_HANDLER_ID_KEY key
to extract it from InputData's global data.
|
getChildServiceEnvironment | protected Environment getChildServiceEnvironment() throws Exception(Code) | | Returns the the Environment of this Service by default. Usually overridden.
|
getChildren | public Map getChildren()(Code) | | Returns an unmodifiable map of the children.
|
getViewModel | protected Object getViewModel() throws Exception(Code) | | Returns the view model. Usually overridden.
|
relocateService | public void relocateService(Composite parent, Environment newEnv, Object keyFrom, Object keyTo)(Code) | | Relocates parent's child with keyFrom to this service with a new key keyTo. The child
will get the Environment specified by newEnv.
Parameters: parent - is the current parent of the child to be relocated. Parameters: newEnv - the new Environment of the child. Parameters: keyFrom - is the key of the child to be relocated. Parameters: keyTo - is the the key, with which the child will be added to this StandardService. |
relocateService | public void relocateService(Composite parent, Object keyFrom, Object keyTo)(Code) | | Relocates parent's child with keyFrom to this service with a new key keyTo. The child
will get the Environment of this StandardService.
Parameters: parent - is the current parent of the child to be relocated. Parameters: keyFrom - is the key of the child to be relocated. Parameters: keyTo - is the the key, with which the child will be added to this StandardService. |
removeActionListener | public void removeActionListener(ActionListener listener)(Code) | | Removes the ActionListener listener from this component.
|
removeService | public void removeService(Object key)(Code) | | Removes the service with the specified key.
|
removeViewData | public void removeViewData(String key)(Code) | | Removes the custom data under key.
|
|
|