All Implemented Interfaces:
AttachNotifier, ClickNotifier<Span>, DetachNotifier, HasComponents, HasElement, HasEnabled, HasSize, HasStyle, HasText, Serializable

public class Badge extends Span
Component representing a badge object.
See Also:
  • Constructor Details

    • Badge

      public Badge()
      Creates a new empty badge.
    • Badge

      public Badge(String text)
      Creates a new badge with the given text.
      Parameters:
      text - the badge's text
    • Badge

      public Badge(Component... components)
      Creates a new badge with the given child components.
      Parameters:
      components - the badge's components
  • Method Details

    • addThemeName

      public void addThemeName(String themeName)
      Adds a theme name to this component.
      Parameters:
      themeName - the theme name to add
    • removeThemeName

      public void removeThemeName(String themeName)
      Removes a theme name from this component.
      Parameters:
      themeName - the theme name to remove