Class WebCustomButtonDepictor<C extends ActionControl>

Type Parameters:
C - The type of component being depicted.
All Implemented Interfaces:
ComponentDepictor<C>, Depictor<C>, WebComponentDepictor<C>, WebDepictor<C>

public class WebCustomButtonDepictor<C extends ActionControl> extends AbstractWebActionControlDepictor<C>
Strategy for rendering an action control as an XHTML <a> element styled as a button. This view recognizes Button controls and can render their images.
Author:
Garret Wilson
See Also:
  • Constructor Details

    • WebCustomButtonDepictor

      public WebCustomButtonDepictor()
      Default constructor using the XHTML <a> element.
  • Method Details

    • depictBegin

      protected void depictBegin() throws IOException
      Description copied from class: AbstractSimpleWebComponentDepictor
      Begins the depiction process.

      This version renders the beginning XML element information, if there is any, leaving the beginning tag open for attributes.

      This version writes common XHTML attributes.

      This version writes the body ID and class attributes, along with the direction attribute.

      Overrides:
      depictBegin in class AbstractSimpleWebComponentDepictor<C extends ActionControl>
      Throws:
      IOException - if there is an error updating the depiction.
    • updateCorners

      protected void updateCorners(Flow.Direction direction) throws IOException
      Renders corners for the given component.
      Parameters:
      direction - Which physical end of the vertical flow the corner is on (decreasing for top or increasing for bottom).
      Throws:
      IOException - if there is an error rendering the component.