Package org.patternfly.component.badge
Class Badge
- java.lang.Object
-
- org.patternfly.component.BaseComponent<HTMLElement,Badge>
-
- org.patternfly.component.badge.Badge
-
- All Implemented Interfaces:
Container<HTMLElement,Badge>,Finder<HTMLElement>,HasElement<HTMLElement,Badge>,HasHTMLElement<HTMLElement,Badge>,IsElement<HTMLElement>,TypedBuilder<HTMLElement,Badge>,Component
public class Badge extends BaseComponent<HTMLElement,Badge>
A badge is used to annotate other information like a label or an object name.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Badgebadge(int count)static Badgebadge(int count, int limit)intcount()Badgecount(int count)Sets the count of this badge.Badgelimit(int limit)Sets the limit of this badgeBadgeonChange(ChangeHandler<Badge,Integer> onChange)Badgeread()Marks the badge as read.BadgescreenReader(String text)Badgethat()Badgeunread()Marks the badge as unread.-
Methods inherited from class org.patternfly.component.BaseComponent
componentType, element
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jboss.elemento.Container
add, add, addAll, addAll, addAll, addAll, addAll
-
Methods inherited from interface org.jboss.elemento.HasElement
add, apply, aria, aria, aria, attr, attr, attr, css, id, id, innerHtml, on, textContent, toggle, toggle, toggle
-
Methods inherited from interface org.jboss.elemento.HasHTMLElement
data, hidden, style, title
-
-
-
-
Method Detail
-
badge
public static Badge badge(int count)
-
badge
public static Badge badge(int count, int limit)
-
that
public Badge that()
-
count
public int count()
-
count
public Badge count(int count)
Sets the count of this badge.
-
limit
public Badge limit(int limit)
Sets the limit of this badge
-
read
public Badge read()
Marks the badge as read.
-
unread
public Badge unread()
Marks the badge as unread.
-
onChange
public Badge onChange(ChangeHandler<Badge,Integer> onChange)
-
-