|
||||||||||
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.markup.transformer.AbstractTransformerBehavior
public abstract class AbstractTransformerBehavior
A Behavior
which can be added to any component. It allows to post-process (transform) the
markup generated by the component.
AbstractOutputTransformerContainer
,
Serialized FormConstructor Summary | |
---|---|
AbstractTransformerBehavior()
|
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 |
detach(Component component)
Allows the behavior to detach any state it has attached during request processing. |
protected BufferedWebResponse |
newResponse(WebResponse originalResponse)
Create a new response object which is used to store the markup generated by the child objects. |
abstract CharSequence |
transform(Component component,
CharSequence output)
Will be invoked after all child components have been processed to allow for transforming the markup generated. |
Methods inherited from class org.apache.wicket.behavior.Behavior |
---|
bind, canCallListenerInterface, getStatelessHint, isEnabled, isTemporary, onComponentTag, onConfigure, onEvent, onException, onRemove, renderHead, unbind |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractTransformerBehavior()
Method Detail |
---|
protected BufferedWebResponse newResponse(WebResponse originalResponse)
originalResponse
- the original web response or null
if it isn't a WebResponse
public void beforeRender(Component component)
Behavior
beforeRender
in class Behavior
component
- the component that has this behavior coupledpublic void afterRender(Component component)
Behavior
afterRender
in class Behavior
component
- the component that has this behavior coupledpublic void detach(Component component)
Behavior
detach
in class Behavior
component
- the component that initiates the detachment of this behaviorpublic abstract CharSequence transform(Component component, CharSequence output) throws Exception
ITransformer
transform
in interface ITransformer
component
- The associated Wicket componentoutput
- The markup generated by the child components
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |