org.araneaframework.framework.container
Class StandardWidgetAdapterService

java.lang.Object
  extended by org.araneaframework.core.BaseComponent
      extended by org.araneaframework.core.BaseService
          extended by org.araneaframework.core.BaseWidget
              extended by org.araneaframework.framework.core.BaseFilterWidget
                  extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.araneaframework.core.BaseWidget
BaseWidget.WidgetImpl
 
Nested classes/interfaces inherited from class org.araneaframework.core.BaseService
BaseService.ServiceImpl
 
Nested classes/interfaces inherited from class org.araneaframework.core.BaseComponent
BaseComponent.ComponentImpl
 
Nested classes/interfaces inherited from interface org.araneaframework.Widget
Widget.Interface
 
Field Summary
 
Fields inherited from class org.araneaframework.framework.core.BaseFilterWidget
childWidget
 
Fields inherited from class org.araneaframework.core.BaseService
currentInputData, currentOutputData
 
Constructor Summary
StandardWidgetAdapterService()
           
 
Method Summary
protected  void action(Path path, InputData input, OutputData output)
          If propagateAsAction(InputData) returns true then the action is propagated to the child.
protected  Path getActionPath(InputData input)
          Extracts the path from the input and returns it.
protected  Path getEventPath(InputData input)
          Extracts the path from the input and returns it.
protected  boolean hasAction(InputData input)
          Returns true if the request contains an action.
protected  boolean hasEvent(InputData input)
          Returns true if the request contains an event.
 
Methods inherited from class org.araneaframework.framework.core.BaseFilterWidget
destroy, event, getChildWidget, getChildWidgetEnvironment, init, propagate, render, setChildWidget, update
 
Methods inherited from class org.araneaframework.core.BaseWidget
_getWidget, getInputData, getOutputData, handleWidgetException
 
Methods inherited from class org.araneaframework.core.BaseService
_getService, 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, 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
 
Methods inherited from interface org.araneaframework.Widget
_getWidget
 
Methods inherited from interface org.araneaframework.Service
_getService
 
Methods inherited from interface org.araneaframework.Component
_getComponent, getEnvironment, getScope, isAlive
 

Constructor Detail

StandardWidgetAdapterService

public StandardWidgetAdapterService()
Method Detail

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: 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