Class BarBadge

java.lang.Object
org.apache.juneau.console.widgets.BarBadge
All Implemented Interfaces:
BarWidget

@BeanType(properties="id,label,badge") public final class BarBadge extends Object implements BarWidget
A labelled count widget in a BarSlot — the "N change pending"-style badge to the right of the subtab ribbon.
Since:
10.0.0
  • Field Details

    • id

      public String id
      The stable widget id, unique within its BarSlot. Required, non-blank.
    • label

      public String label
      The contextual label painted as textContent (e.g. "change pending").
    • badge

      public Badge badge
      The overlay count/tone badge (amber for the yellow "pending" badge).
  • Constructor Details

  • Method Details

    • of

      public static BarBadge of(String id)
      Creates a bar badge with the given id.
      Parameters:
      id - The stable widget id. Must not be null or blank.
      Returns:
      A new BarBadge.
    • label

      public BarBadge label(String value)
      Sets the contextual label.
      Parameters:
      value - The label text.
      Returns:
      This object.
    • badge

      public BarBadge badge(Badge value)
      Sets the count/tone badge.
      Parameters:
      value - The badge.
      Returns:
      This object.