org.araneaframework.core
Class BaseWidget

java.lang.Object
  extended byorg.araneaframework.core.BaseComponent
      extended byorg.araneaframework.core.BaseService
          extended byorg.araneaframework.core.BaseWidget
All Implemented Interfaces:
Component, Serializable, Service, Widget
Direct Known Subclasses:
BaseApplicationWidget, BaseFilterWidget, StandardServiceAdapterWidget

public abstract class BaseWidget
extends BaseService
implements Widget

Non-composite widget component.

Compared to BaseService has the following extra functionality:

Author:
"Toomas Römer"
See Also:
Serialized Form

Nested Class Summary
protected  class BaseWidget.WidgetImpl
           
 
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.Widget
Widget.Interface
 
Field Summary
 
Fields inherited from class org.araneaframework.core.BaseService
currentInputData, currentOutputData
 
Constructor Summary
BaseWidget()
           
 
Method Summary
 Widget.Interface _getWidget()
          Returns a widget's internal implementation.
protected  void event(Path path, InputData input)
           
protected  InputData getInputData()
          Provides access to the current request data.
protected  OutputData getOutputData()
          Provides access to the current response data.
protected  void handleWidgetException(Exception e)
           
protected  void render(OutputData output)
           
protected  void update(InputData input)
           
 
Methods inherited from class org.araneaframework.core.BaseService
_getService, action, 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, getEnvironment, getScope, handleException, init, isAlive, isDead, isInitialized, propagate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.araneaframework.Service
_getService
 
Methods inherited from interface org.araneaframework.Component
_getComponent, getEnvironment, getScope, isAlive
 

Constructor Detail

BaseWidget

public BaseWidget()
Method Detail

_getWidget

public Widget.Interface _getWidget()
Returns a widget's internal implementation.

Specified by:
_getWidget in interface Widget
Returns:
the widget's implementation

handleWidgetException

protected void handleWidgetException(Exception e)
                              throws Exception
Throws:
Exception

update

protected void update(InputData input)
               throws Exception
Throws:
Exception

event

protected void event(Path path,
                     InputData input)
              throws Exception
Throws:
Exception

render

protected void render(OutputData output)
               throws Exception
Throws:
Exception

getInputData

protected InputData getInputData()
Description copied from class: BaseService
Provides access to the current request data.

Overrides:
getInputData in class BaseService
Returns:
The current request data.

getOutputData

protected OutputData getOutputData()
Description copied from class: BaseService
Provides access to the current response data.

Overrides:
getOutputData in class BaseService
Returns:
The current response data.