|
||||||||||
| 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| Field Summary |
|---|
| Fields inherited from class org.apache.wicket.Component |
|---|
ENABLE, FLAG_INITIALIZED, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, 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. |
void |
onComponentTagBody(MarkupStream markupStream,
ComponentTag openTag)
Handle the container's body. |
protected void |
onRender()
Implementation that 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, contains, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, hasAssociatedMarkup, internalAdd, internalInitialize, iterator, iterator, onAfterRenderChildren, onMarkupAttached, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, toString, visitChildren, visitChildren, 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 ITransformercomponent - The associated Wicket componentoutput - The markup generated by the child components
Exception
public final void onComponentTagBody(MarkupStream markupStream,
ComponentTag openTag)
MarkupContainer
onComponentTagBody in class MarkupContainermarkupStream - The markup streamopenTag - The open tag for the bodyprotected final void onRender()
Component
onRender in class MarkupContainerComponent.onRender()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||