Package org.jboss.hal.ballroom
Class Alert
- java.lang.Object
-
- org.jboss.hal.ballroom.Alert
-
- All Implemented Interfaces:
org.jboss.elemento.IsElement<elemental2.dom.HTMLElement>
public class Alert extends Object implements org.jboss.elemento.IsElement<elemental2.dom.HTMLElement>
Alert element with an optional icon and link.Constraints for the links are encoded as
data-constraintattributes. Please make sure to callElementGuard.processElements(AuthorisationDecision, String)when the alert element is added to the DOM.
-
-
Constructor Summary
Constructors Constructor Description Alert()Alert(String icon, com.google.gwt.safehtml.shared.SafeHtml text)Alert(String icon, com.google.gwt.safehtml.shared.SafeHtml text, String additionalText)Alert(String icon, com.google.gwt.safehtml.shared.SafeHtml text, String additionalText, String linkText, org.jboss.elemento.EventCallbackFn<elemental2.dom.MouseEvent> linkHandler, org.jboss.hal.meta.security.Constraint constraint)Alert(String icon, com.google.gwt.safehtml.shared.SafeHtml text, String linkText, org.jboss.elemento.EventCallbackFn<elemental2.dom.MouseEvent> linkHandler)Alert(String icon, com.google.gwt.safehtml.shared.SafeHtml text, String linkText, org.jboss.elemento.EventCallbackFn<elemental2.dom.MouseEvent> linkHandler, org.jboss.hal.meta.security.Constraint constraint)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description elemental2.dom.HTMLElementelement()AlertsetIcon(String icon)AlertsetText(com.google.gwt.safehtml.shared.SafeHtml text)
-
-
-
Constructor Detail
-
Alert
public Alert()
-
Alert
public Alert(String icon, com.google.gwt.safehtml.shared.SafeHtml text)
-
Alert
public Alert(String icon, com.google.gwt.safehtml.shared.SafeHtml text, String additionalText)
-
Alert
public Alert(String icon, com.google.gwt.safehtml.shared.SafeHtml text, String linkText, org.jboss.elemento.EventCallbackFn<elemental2.dom.MouseEvent> linkHandler)
-
Alert
public Alert(String icon, com.google.gwt.safehtml.shared.SafeHtml text, String linkText, org.jboss.elemento.EventCallbackFn<elemental2.dom.MouseEvent> linkHandler, org.jboss.hal.meta.security.Constraint constraint)
-
-