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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
id
The stable widget id, unique within itsBarSlot. Required, non-blank. -
label
The contextual label painted astextContent(e.g."change pending" ). -
badge
The overlay count/tone badge (amber for the yellow "pending" badge).
-
-
Constructor Details
-
BarBadge
public BarBadge()
-
-
Method Details
-
of
Creates a bar badge with the given id.- Parameters:
id- The stable widget id. Must not benull or blank.- Returns:
- A new
BarBadge.
-
label
Sets the contextual label.- Parameters:
value- The label text.- Returns:
- This object.
-
badge
Sets the count/tone badge.- Parameters:
value- The badge.- Returns:
- This object.
-