Class WebToolButtonDepictor<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 WebToolButtonDepictor<C extends ActionControl> extends WebButtonDepictor<C>
Strategy for rendering an action control as an XHTML <button> element. This depictor allows rollovers and only renders the border upon rollover.
Author:
Garret Wilson
  • Constructor Details

    • WebToolButtonDepictor

      public WebToolButtonDepictor()
      Default constructor using the XHTML <button> element.
  • Method Details

    • getBodyStyles

      protected Map<String,Object> getBodyStyles()
      Retrieves the styles for the body element of the component.

      This version returns the style for background color.

      This version lowers the opacity if the control is disabled.

      This version adds special borders for a selected SelectActionControl.

      This version adds special borders for a selected SelectActionControl.

      Overrides:
      getBodyStyles in class WebButtonDepictor<C extends ActionControl>
      Returns:
      The styles for the body element of the component, mapped to CSS property names.