Class Tooltip

java.lang.Object
org.apache.juneau.rest.widget.Tooltip

public class Tooltip extends Object
Simple template for adding tooltips to HTML5 bean constructs, typically in menu item widgets.

Tooltips depend on the existence of the tooltip and tooltiptext styles that should be present in the stylesheet for the document.

See Also:
  • Constructor Details

    • Tooltip

      public Tooltip(String display, Object... content)
      Constructor.
      Parameters:
      display - The normal display text.
      This is what gets rendered normally.
      The format is raw HTML and can contain markup.
      content - The hover contents.
      Typically a list of strings, but can also include any HTML5 beans as well.
  • Method Details

    • swap

      public Div swap(BeanSession session)
      The swap method.

      Converts this bean into a div tag with contents.

      Parameters:
      session - The bean session.
      Returns:
      The swapped contents of this bean.