|
||||||||||
| 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 Form| Nested 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_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED6, FLAG_RESERVED7, FLAG_RESERVED8, PATH_SEPARATOR, RENDER |
| Constructor Summary | |
|---|---|
AbstractOutputTransformerContainer(java.lang.String id)
Construct |
|
AbstractOutputTransformerContainer(java.lang.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 java.lang.CharSequence |
transform(Component component,
java.lang.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, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderComponentTagBody, 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(java.lang.String id)
Component.Component(String)
public AbstractOutputTransformerContainer(java.lang.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 java.lang.CharSequence transform(Component component,
java.lang.CharSequence output)
throws java.lang.Exception
ITransformer
transform in interface ITransformercomponent - The associated Wicket componentoutput - The markup generated by the child components
java.lang.ExceptionITransformer.transform(org.apache.wicket.Component,
CharSequence)
protected final void onComponentTagBody(MarkupStream markupStream,
ComponentTag openTag)
MarkupContainer
onComponentTagBody in class MarkupContainermarkupStream - 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 MarkupContainerComponent.onRender(MarkupStream)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||