Package org.patternfly.component.alert
Class Alert
- All Implemented Interfaces:
Attachable,ElementAttributeMethods<HTMLDivElement,,Alert> ElementClassListMethods<HTMLDivElement,,Alert> ElementConsumerMethods<HTMLDivElement,,Alert> ElementContainerMethods<HTMLDivElement,,Alert> ElementEventMethods<HTMLDivElement,,Alert> ElementIdMethods<HTMLDivElement,,Alert> ElementQueryMethods<HTMLDivElement>,HTMLElementAttributeMethods<HTMLDivElement,,Alert> HTMLElementDataMethods<HTMLDivElement,,Alert> HTMLElementStyleMethods<HTMLDivElement,,Alert> HTMLElementVisibilityMethods<HTMLDivElement,,Alert> IsElement<HTMLDivElement>,TypedBuilder<HTMLDivElement,,Alert> Closeable<HTMLDivElement,,Alert> Component,ComponentIcon<HTMLDivElement,,Alert> Expandable<HTMLDivElement,,Alert> HasIdentifier<HTMLDivElement,,Alert> org.patternfly.core.ComponentContext<HTMLDivElement,,Alert> org.patternfly.style.Modifiers.Inline<HTMLDivElement,,Alert> org.patternfly.style.Modifiers.Plain<HTMLDivElement,Alert>
public class Alert
extends BaseComponent<HTMLDivElement,Alert>
implements Closeable<HTMLDivElement,Alert>, org.patternfly.core.ComponentContext<HTMLDivElement,Alert>, ComponentIcon<HTMLDivElement,Alert>, Expandable<HTMLDivElement,Alert>, Attachable, HasIdentifier<HTMLDivElement,Alert>, org.patternfly.style.Modifiers.Inline<HTMLDivElement,Alert>, org.patternfly.style.Modifiers.Plain<HTMLDivElement,Alert>
An alert is a notification that provides brief information to the user without blocking their workflow.
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionadd(AlertDescription description) addActionGroup(AlertActionGroup actionGroup) addDescription(String description) Wraps the description inside a<p/>element, adds it to aAlertDescriptionand finally adds it to this alert.addDescription(AlertDescription description) static Alertstatic AlertariaCloseLabel(String label) voidattach(MutationRecord mutationRecord) closable()voidvoidcollapse(boolean fireEvent) voiddetach(MutationRecord mutationRecord) voidexpand(boolean fireEvent) expandable(org.patternfly.handler.ToggleHandler<Alert> toggleHandler) <T> TbooleanMake this alert a live region alert.<T> Alertthat()timeout()timeout(int timeout) truncate()truncate(int lines) Methods 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.patternfly.core.ComponentContext
get, getMethods inherited from interface org.patternfly.component.ComponentIcon
iconMethods 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.patternfly.component.Expandable
collapse, expand, expanded, toggle, toggleMethods 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 org.patternfly.style.Modifiers.Inline
inline, inlineMethods inherited from interface org.patternfly.style.Modifiers.Plain
plain, plain
-
Field Details
-
DEFAULT_TIMEOUT
public static final int DEFAULT_TIMEOUT- See Also:
-
-
Method Details
-
alert
-
alert
-
attach
- Specified by:
attachin interfaceAttachable
-
detach
- Specified by:
detachin interfaceAttachable
-
addActionGroup
-
addDescription
Wraps the description inside a<p/>element, adds it to aAlertDescriptionand finally adds it to this alert. Useful if your description is just a simple string. -
addDescription
-
add
-
closable
-
closable
-
icon
- Specified by:
iconin interfaceComponentIcon<HTMLDivElement,Alert>
-
removeIcon
- Specified by:
removeIconin interfaceComponentIcon<HTMLDivElement,Alert>
-
expandable
-
expandable
-
liveRegion
Make this alert a live region alert. Live region alerts allow you to expose dynamic content changes in a way that can be announced by assistive technologies.Set the following ARIA attributes:
aria-live: "polite"aria-atomic: false
- See Also:
-
timeout
-
timeout
-
truncate
-
truncate
-
store
- Specified by:
storein interfaceorg.patternfly.core.ComponentContext<HTMLDivElement,Alert>
-
that
- Specified by:
thatin interfaceTypedBuilder<HTMLDivElement,Alert>
-
ariaLabel
-
ariaCloseLabel
-
onClose
- Specified by:
onClosein interfaceCloseable<HTMLDivElement,Alert>
-
identifier
- Specified by:
identifierin interfaceHasIdentifier<HTMLDivElement,Alert>
-
has
- Specified by:
hasin interfaceorg.patternfly.core.ComponentContext<HTMLDivElement,Alert>
-
get
- Specified by:
getin interfaceorg.patternfly.core.ComponentContext<HTMLDivElement,Alert>
-
close
- Specified by:
closein interfaceCloseable<HTMLDivElement,Alert>
-
collapse
public void collapse(boolean fireEvent) - Specified by:
collapsein interfaceExpandable<HTMLDivElement,Alert>
-
expand
public void expand(boolean fireEvent) - Specified by:
expandin interfaceExpandable<HTMLDivElement,Alert>
-