Class BadgeList
java.lang.Object
com.vaadin.flow.component.Component
com.flowingcode.vaadin.addons.badgelist.BadgeList
- All Implemented Interfaces:
AttachNotifier,DetachNotifier,HasElement,HasLabel,HasSize,HasStyle,HasTheme,Serializable
@JsModule("@vaadin/vaadin-lumo-styles/badge-global.js") @JsModule("./src/fc-badge-list.ts")
@Tag("fc-badge-list")
public class BadgeList
extends Component
implements HasTheme, HasSize, HasLabel
Component that represents a responsive list of badges.
- Author:
- Paola De Bartolo / Flowing Code
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasSize
getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFullMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassNameMethods inherited from interface com.vaadin.flow.component.HasTheme
addThemeName, addThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeName
-
Constructor Details
-
BadgeList
public BadgeList()Creates a new instance of BadgeList. -
BadgeList
Creates a new instance of BadgeList with the given label.- Parameters:
label- the BadgeList label
-
BadgeList
Creates a new instance of BadgeList with the supplied list ofbadges.- Parameters:
badges- list of badges
-
-
Method Details
-
setBadges
Sets a list ofbadgesto the BadgeList component.- Parameters:
badges- the list of badges to add
-