org.araneaframework.framework.container
Class StandardWidgetAdapterService
java.lang.Object
org.araneaframework.core.BaseComponent
org.araneaframework.core.BaseService
org.araneaframework.core.BaseWidget
org.araneaframework.framework.core.BaseFilterWidget
org.araneaframework.framework.container.StandardWidgetAdapterService
- All Implemented Interfaces:
- Serializable, Component, FilterWidget, Service, Widget
public class StandardWidgetAdapterService
- extends BaseFilterWidget
Service that contains a widget.
- Author:
- "Toomas Römer"
- See Also:
- Serialized Form
| 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, disable, enable, getEnvironment, getScope, handleException, isAlive, isDead, isInitialized |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StandardWidgetAdapterService
public StandardWidgetAdapterService()
action
protected void action(Path path,
InputData input,
OutputData output)
throws Exception
- If
propagateAsAction(InputData) returns true then the action
is propagated to the child. Otherwise if the request is the first one then:
update(input)
event(path, input)
are called on the child, if not then just render(output).
- Overrides:
action in class BaseFilterWidget
- Parameters:
path - The path of the component to whom the action is targeted.input - The request data.output - The response data.
- Throws:
Exception - Any runtime exception that may occur.
getEventPath
protected Path getEventPath(InputData input)
- Extracts the path from the input and returns it. This implementation uses
the
ApplicationWidget.EVENT_PATH_KEY parameter in the request and
expects the event path to be a dot-separated string.
- Since:
- 1.1
hasEvent
protected boolean hasEvent(InputData input)
- Returns true if the request contains an event.
- Since:
- 1.1
getActionPath
protected Path getActionPath(InputData input)
- Extracts the path from the input and returns it. This implementation uses
the
ApplicationService.ACTION_PATH_KEY parameter in the request and
expects the action path to be a dot-separated string.
- Since:
- 1.1
hasAction
protected boolean hasAction(InputData input)
- Returns true if the request contains an action.
- Since:
- 1.1