| org.apache.wicket.behavior.IBehavior
All known Subclasses: org.apache.wicket.behavior.AbstractBehavior,
Method Summary | |
void | afterRender(Component component) Called when a component that has this behavior coupled was rendered. | void | beforeRender(Component component) Called when a component is about to render. | void | bind(Component component) Bind this handler to the given component. | void | detach(Component component) Allows the behavior to detach any state it has attached during request
processing. | void | exception(Component component, RuntimeException exception) In case an unexpected exception happened anywhere between
onComponentTag() and rendered(), onException() will be called for any
behavior. | boolean | getStatelessHint(Component component) This method returns false if the behaviour generates a callback url (for
example ajax behaviours)
Parameters: component - the component that has this behavior coupled. | boolean | isEnabled(Component component) Called when a components is rendering and wants to render this behavior. | boolean | isTemporary() Specifies whether or not this behavior is temporary. | void | onComponentTag(Component component, ComponentTag tag) Called any time a component that has this behavior registered is
rendering the component tag. |
afterRender | void afterRender(Component component)(Code) | | Called when a component that has this behavior coupled was rendered.
Parameters: component - the component that has this behavior coupled |
beforeRender | void beforeRender(Component component)(Code) | | Called when a component is about to render.
Parameters: component - the component that has this behavior coupled |
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 and 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 |
detach | void detach(Component component)(Code) | | Allows the behavior to detach any state it has attached during request
processing.
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.afterRender(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 |
getStatelessHint | boolean getStatelessHint(Component component)(Code) | | This method returns false if the behaviour generates a callback url (for
example ajax behaviours)
Parameters: component - the component that has this behavior coupled. boolean true or false. |
isEnabled | boolean isEnabled(Component component)(Code) | | Called when a components is rendering and wants to render this behavior.
If false is returned this behavior will be ignored.
Parameters: component - the component that has this behavior coupled true if this behaviour must be executed/rendered |
isTemporary | boolean isTemporary()(Code) | | Specifies whether or not this behavior is temporary. Temporary behaviors
are removed at the end of request. Such behaviors are useful for
modifying component rendering only when it renders next. Usecases include
javascript effects, initial clientside dom setup, etc.
true if this behavior is temporary |
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 |
|
|