|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.behavior.Behavior org.apache.wicket.behavior.AbstractBehavior
Behavior
instead
@Deprecated public abstract class AbstractBehavior
Adapter implementation of Behavior
. It is recommended to
extend from this class instead of directly implementing
Behavior
as this class has an extra cleanup()
call.
Constructor Summary | |
---|---|
AbstractBehavior()
Deprecated. Construct. |
Method Summary | |
---|---|
void |
afterRender(Component component)
Deprecated. Called when a component that has this behavior coupled was rendered. |
void |
cleanup()
Deprecated. This method is called either by onRendered(Component) or
onHandleException(Component, RuntimeException) AFTER they called their respective
template methods. |
void |
onException(Component component,
RuntimeException exception)
Deprecated. In case an unexpected exception happened anywhere between onComponentTag() and rendered(), onException() will be called for any behavior. |
void |
onHandleException(Component component,
RuntimeException exception)
Deprecated. In case an unexpected exception happened anywhere between onComponentTag() and rendered(), onException() will be called for any behavior. |
void |
onRendered(Component component)
Deprecated. Called when a component that has this behavior coupled was rendered. |
Methods inherited from class org.apache.wicket.behavior.Behavior |
---|
beforeRender, bind, canCallListenerInterface, detach, getStatelessHint, isEnabled, isTemporary, onComponentTag, onConfigure, onEvent, renderHead, unbind |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractBehavior()
Method Detail |
---|
public void cleanup()
onRendered(Component)
or
onHandleException(Component, RuntimeException)
AFTER they called their respective
template methods. Override this template method to do any necessary cleanup.
public final void onException(Component component, RuntimeException exception)
Behavior
Behavior.afterRender(Component)
, you should do the same in the implementation of this method.
onException
in class Behavior
component
- the component that has a reference to this behavior and during which processing
the exception occurredexception
- the unexpected exceptionBehavior.onException(org.apache.wicket.Component,
java.lang.RuntimeException)
public void onHandleException(Component component, RuntimeException exception)
component
- the component that has a reference to this behavior and during which processing
the exception occurredexception
- the unexpected exceptionpublic void onRendered(Component component)
component
- the component that has this behavior coupledpublic final void afterRender(Component component)
Behavior
afterRender
in class Behavior
component
- the component that has this behavior coupledBehavior.afterRender(org.apache.wicket.Component)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |