| wicket.behavior.IBehavior
All known Subclasses: wicket.behavior.AbstractBehavior,
Method Summary | |
void | bind(Component component) Bind this handler to the given component. | void | detachModel(Component component) Provides for the ability to detach any models this behavior has. | void | exception(Component component, RuntimeException exception) In case an unexpected exception happened anywhere between
onComponentTag() and rendered(), onException() will be called for any
behavior. | void | onComponentTag(Component component, ComponentTag tag) Called any time a component that has this behavior registered is
rendering the component tag. | void | rendered(Component component) Called when a component that has this behavior coupled was rendered. |
bind | void bind(Component component)(Code) | | Bind this handler to the given component. This method is called by the
host component immediately after this behavior is added to it. This
method is useful if you need to do initialization based on the component
it is attached can you can't wait to do it at render time. Keep in mind
that if you decide to keep a reference to the host component, it is not
thread safe anymore, and should thus only be used in situations where you
do not reuse the behavior for multiple components.
Parameters: component - the component to bind to |
detachModel | void detachModel(Component component)(Code) | | Provides for the ability to detach any models this behavior has. This
method is called by the components which have this behavior attached to
them when they are detaching their models themselves (ie after
rendering). Note that if you share a behavior between components, this
method is called multiple times.
YOU MUST CALL SUPER WHEN IMPLEMENTING THIS METHOD
Parameters: component - the component that initiates the detachement of this behavior |
exception | void exception(Component component, RuntimeException exception)(Code) | | In case an unexpected exception happened anywhere between
onComponentTag() and rendered(), onException() will be called for any
behavior. Typically, if you clean up resources in
IBehavior.rendered(Component) , you should do the same in the
implementation of this method.
Parameters: component - the component that has a reference to this behavior and duringwhich processing the exception occured Parameters: exception - the unexpected exception |
onComponentTag | void onComponentTag(Component component, ComponentTag tag)(Code) | | Called any time a component that has this behavior registered is
rendering the component tag.
Parameters: component - the component that renders this tag currently Parameters: tag - the tag that is rendered |
rendered | void rendered(Component component)(Code) | | Called when a component that has this behavior coupled was rendered.
Parameters: component - the component that has this behavior coupled |
|
|