Class AbstractTransformerBehavior

    • Method Detail

      • newResponse

        protected BufferedWebResponse newResponse​(WebResponse originalResponse)
        Create a new response object which is used to store the markup generated by the child objects.
        Parameters:
        originalResponse - the original web response or null if it isn't a WebResponse
        Returns:
        Response object. Must not be null
      • beforeRender

        public void beforeRender​(Component component)
        Description copied from class: Behavior
        Called when a component is about to render.
        Overrides:
        beforeRender in class Behavior
        Parameters:
        component - the component that has this behavior coupled
      • afterRender

        public void afterRender​(Component component)
        Description copied from class: Behavior
        Called when a component that has this behavior coupled was rendered.
        Overrides:
        afterRender in class Behavior
        Parameters:
        component - the component that has this behavior coupled
      • detach

        public void detach​(Component component)
        Description copied from class: Behavior
        Allows the behavior to detach any state it has attached during request processing.
        Overrides:
        detach in class Behavior
        Parameters:
        component - the component that initiates the detachment of this behavior
      • 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