Class AbstractOutputTransformerContainer

    • Method Detail

      • setTransformBodyOnly

        public MarkupContainer setTransformBodyOnly​(boolean value)
        You can choose whether the body of the tag excluding the tag shall be transformed or including the tag.
        Parameters:
        value - If true, only the body is applied to transformation.
        Returns:
        this
      • newResponse

        protected org.apache.wicket.request.Response newResponse()
        Create a new response object which is used to store the markup generated by the child objects.
        Returns:
        Response object. Must not be null
      • transform

        public abstract CharSequence transform​(Component component,
                                               CharSequence output)
                                        throws Exception
        Description copied from interface: ITransformer
        Will be invoked after all child components have been processed to allow for transforming the markup generated.
        Specified by:
        transform in interface ITransformer
        Parameters:
        component - The associated Wicket component
        output - The markup generated by the child components
        Returns:
        The output which will be appended to the original response
        Throws:
        Exception
      • onComponentTagBody

        public final void onComponentTagBody​(MarkupStream markupStream,
                                             ComponentTag openTag)
        Description copied from class: MarkupContainer
        Handle the container's body. If your override of this method does not advance the markup stream to the close tag for the openTag, a runtime exception will be thrown by the framework.
        Overrides:
        onComponentTagBody in class MarkupContainer
        Parameters:
        markupStream - The markup stream
        openTag - The open tag for the body
      • onRender

        protected final void onRender()
        Description copied from class: Component
        Implementation that renders this component.
        Overrides:
        onRender in class MarkupContainer