|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.Component
org.apache.wicket.MarkupContainer
org.apache.wicket.markup.transformer.AbstractOutputTransformerContainer
public abstract class AbstractOutputTransformerContainer
This abstract container provides the means to post-process the markup generated by its child components (excluding the containers tag)
Please see IBehavior
for an alternative based on IBehavior
AbstractTransformerBehavior
,
ITransformer
,
Serialized FormNested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.wicket.Component |
---|
Component.ComponentModelChange, Component.EnabledChange, Component.IVisitor<T extends Component>, Component.VisibilityChange |
Field Summary |
---|
Fields inherited from class org.apache.wicket.Component |
---|
ENABLE, FLAG_CONFIGURED, FLAG_INITIALIZED, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED6, FLAG_RESERVED7, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER |
Constructor Summary | |
---|---|
AbstractOutputTransformerContainer(String id)
Construct |
|
AbstractOutputTransformerContainer(String id,
IModel<?> model)
Construct |
Method Summary | |
---|---|
protected Response |
newResponse()
Create a new response object which is used to store the markup generated by the child objects. |
protected void |
onComponentTagBody(MarkupStream markupStream,
ComponentTag openTag)
Handle the container's body. |
protected void |
onRender(MarkupStream markupStream)
Renders this component. |
MarkupContainer |
setTransformBodyOnly(boolean value)
You can choose whether the body of the tag excluding the tag shall be transformed or including the tag. |
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.MarkupContainer |
---|
add, addOrReplace, autoAdd, autoAdd, contains, findMarkupStream, get, get, getAssociatedMarkupStream, getMarkupStream, getMarkupType, hasAssociatedMarkup, internalAdd, isTransparentResolver, iterator, iterator, newMarkupResourceStream, onAfterRenderChildren, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderComponentTagBody, renderNext, replace, setDefaultModel, setMarkupStream, size, swap, toString, toString, visitChildren, visitChildren |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractOutputTransformerContainer(String id)
Component.Component(String)
public AbstractOutputTransformerContainer(String id, IModel<?> model)
Component.Component(String, IModel)
Method Detail |
---|
public MarkupContainer setTransformBodyOnly(boolean value)
value
- If true, only the body is applied to transformation.
protected Response newResponse()
public 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
ITransformer.transform(org.apache.wicket.Component,
CharSequence)
protected final void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag)
MarkupContainer
onComponentTagBody
in class MarkupContainer
markupStream
- The markup streamopenTag
- The open tag for the bodyComponent.onComponentTagBody(org.apache.wicket.markup.MarkupStream,
org.apache.wicket.markup.ComponentTag)
protected final void onRender(MarkupStream markupStream)
MarkupContainer
onRender
in class MarkupContainer
Component.onRender(MarkupStream)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |