|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Behavior
Behaviors provide a mechanism for changing how Controls behave at runtime. Behaviors are added to a Control and provides interceptor methods to decorate and enhance the source Control.
Behaviors provide interceptor methods for specific Control life cycle events. These interceptor methods can be implemented to further process and decorate the control or its children. The following interceptor methods are defined:HEAD elements
are written to the responseonDestroy
event handler.
Method Summary | |
---|---|
void |
preDestroy(Control source)
This event occurs before the Control onDestroy
event handler. |
void |
preRenderHeadElements(Control source)
This event occurs after preResponse(org.apache.click.Control) ,
but before the Control's Control.getHeadElements() is called. |
void |
preResponse(Control source)
This event occurs before the markup is written to the HttpServletResponse. |
Method Detail |
---|
void preResponse(Control source)
source
- the control the behavior is registered withvoid preRenderHeadElements(Control source)
preResponse(org.apache.click.Control)
,
but before the Control's Control.getHeadElements()
is called.
source
- the control the behavior is registered withvoid preDestroy(Control source)
onDestroy
event handler. This event allows the behavior to cleanup or store Control
state in the Session.
source
- the control the behavior is registered with
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |