|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectwicket.behavior.AbstractBehavior
public abstract class AbstractBehavior
Adapter implementation of IBehavior. It is
recommended to extend from this class instead of directly implementing
IBehavior as this class has an extra clean
| Constructor Summary | |
|---|---|
AbstractBehavior()
Construct. |
|
| Method Summary | |
|---|---|
void |
bind(Component component)
Bind this handler to the given component. |
void |
cleanup()
This method is called either by onRendered(Component) or
onException(Component, RuntimeException) AFTER they called their
respective template methods. |
void |
detachModel(Component component)
Provides for the ability to detach any models this behavior has. |
void |
exception(Component component,
java.lang.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 |
onException(Component component,
java.lang.RuntimeException exception)
In case an unexpected exception happened anywhere between onComponentTag() and rendered(), onException() will be called for any behavior. |
void |
onRendered(Component component)
Called when a component that has this behavior coupled was rendered. |
void |
rendered(Component component)
Called when a component that has this behavior coupled was rendered. |
| 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 bind(Component component)
IBehavior
bind in interface IBehaviorcomponent - the component to bind toIBehavior.bind(wicket.Component)public void detachModel(Component component)
IBehavior
detachModel in interface IBehaviorcomponent - the component that initiates the detachement of this behaviorIBehavior.detachModel(Component)
public void onComponentTag(Component component,
ComponentTag tag)
IBehavior
onComponentTag in interface IBehaviorcomponent - the component that renders this tag currentlytag - the tag that is renderedIBehavior.onComponentTag(wicket.Component,
wicket.markup.ComponentTag)public final void rendered(Component component)
IBehavior
rendered in interface IBehaviorcomponent - the component that has this behavior coupledIBehavior.rendered(wicket.Component)public void onRendered(Component component)
component - the component that has this behavior coupled
public void exception(Component component,
java.lang.RuntimeException exception)
IBehaviorIBehavior.rendered(Component), you should do the same in the
implementation of this method.
exception in interface IBehaviorcomponent - the component that has a reference to this behavior and during
which processing the exception occuredexception - the unexpected exceptionIBehavior.exception(wicket.Component,
java.lang.RuntimeException)
public void onException(Component component,
java.lang.RuntimeException exception)
component - the component that has a reference to this behavior and during
which processing the exception occuredexception - the unexpected exceptionpublic void cleanup()
onRendered(Component) or
onException(Component, RuntimeException) AFTER they called their
respective template methods. Override this template method to do any
necessary cleanup.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||