Class BarText

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

@BeanType(properties="id,text") public final class BarText extends Object implements BarWidget
A static contextual label widget in a BarSlot.
Since:
10.0.0
  • Field Details

    • id

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

      public String text
      The label text painted as textContent. Required, non-blank.
  • Constructor Details

  • Method Details

    • of

      public static BarText of(String id, String text)
      Creates a bar text widget.
      Parameters:
      id - The stable widget id. Must not be null or blank.
      text - The label text. Must not be null or blank.
      Returns:
      A new BarText.