Package org.patternfly.component.alert
Class AlertGroup
java.lang.Object
org.patternfly.component.BaseComponent<HTMLUListElement,AlertGroup>
org.patternfly.component.alert.AlertGroup
- All Implemented Interfaces:
Iterable<Alert>,ElementAttributeMethods<HTMLUListElement,,AlertGroup> ElementClassListMethods<HTMLUListElement,,AlertGroup> ElementConsumerMethods<HTMLUListElement,,AlertGroup> ElementContainerMethods<HTMLUListElement,,AlertGroup> ElementEventMethods<HTMLUListElement,,AlertGroup> ElementIdMethods<HTMLUListElement,,AlertGroup> ElementQueryMethods<HTMLUListElement>,HTMLElementAttributeMethods<HTMLUListElement,,AlertGroup> HTMLElementDataMethods<HTMLUListElement,,AlertGroup> HTMLElementStyleMethods<HTMLUListElement,,AlertGroup> HTMLElementVisibilityMethods<HTMLUListElement,,AlertGroup> IsElement<HTMLUListElement>,TypedBuilder<HTMLUListElement,,AlertGroup> Component,HasItems<HTMLUListElement,AlertGroup, Alert>
public class AlertGroup
extends BaseComponent<HTMLUListElement,AlertGroup>
implements HasItems<HTMLUListElement,AlertGroup,Alert>
An alert group stacks and positions 2 or more alerts in a live region, either in a layer over the main content of a page or
inline with the page content. Alert groups should always rank alerts by age, stacking new alerts on top of old ones as they
surface.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic AlertGroupalertGroup(AlertGroupType type) Creates a new alert group of the given type without a timeout.static AlertGroupalertGroup(AlertGroupType type, int timeout) Creates a new alert group of the given type and timeout.voidclear()booleanbooleanisEmpty()iterator()intsize()that()static AlertGroupMethods inherited from class org.patternfly.component.BaseComponent
componentType, elementMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jboss.elemento.ElementAttributeMethods
aria, aria, aria, attr, attr, attr, role, roleMethods inherited from interface org.jboss.elemento.ElementClassListMethods
classList, classList, css, toggle, toggle, toggleMethods inherited from interface org.jboss.elemento.ElementConsumerMethods
apply, runMethods inherited from interface org.jboss.elemento.ElementContainerMethods
add, add, add, add, addAll, addAll, addAll, addAll, addAll, addAllMethods inherited from interface org.jboss.elemento.ElementEventMethods
on, on, onMethods inherited from interface org.jboss.elemento.ElementIdMethods
id, uniqueIdMethods inherited from interface org.jboss.elemento.ElementQueryMethods
closest, querySelector, querySelectorAllMethods inherited from interface org.jboss.elemento.HTMLElementAttributeMethods
titleMethods inherited from interface org.jboss.elemento.HTMLElementDataMethods
dataMethods inherited from interface org.jboss.elemento.HTMLElementStyleMethods
style, style, style, style, style, styleMethods inherited from interface org.jboss.elemento.HTMLElementVisibilityMethods
hiddenMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
alertGroup
Creates a new alert group of the given type without a timeout.If the type is
AlertGroupType.toastthe alert group is added to the body or if it already has been added the existing alert group is returned (singleton pattern). -
alertGroup
Creates a new alert group of the given type and timeout.If the type is
AlertGroupType.toastthe alert group is added to the body or if it already has been added the existing alert group is returned (singleton pattern). -
toastAlertGroup
-
add
- Specified by:
addin interfaceHasItems<HTMLUListElement,AlertGroup, Alert>
-
that
- Specified by:
thatin interfaceTypedBuilder<HTMLUListElement,AlertGroup>
-
iterator
-
size
public int size()- Specified by:
sizein interfaceHasItems<HTMLUListElement,AlertGroup, Alert>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceHasItems<HTMLUListElement,AlertGroup, Alert>
-
contains
- Specified by:
containsin interfaceHasItems<HTMLUListElement,AlertGroup, Alert>
-
item
- Specified by:
itemin interfaceHasItems<HTMLUListElement,AlertGroup, Alert>
-
clear
public void clear()- Specified by:
clearin interfaceHasItems<HTMLUListElement,AlertGroup, Alert>
-