Class 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-constraint attributes. Please make sure to call ElementGuard.processElements(AuthorisationDecision, String) when the alert element is added to the DOM.

    See Also:
    https://www.patternfly.org/pattern-library/communication/inline-notifications/
    • 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)  
    • 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)
      • Alert

        public 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)
    • Method Detail

      • setText

        public Alert setText​(com.google.gwt.safehtml.shared.SafeHtml text)
      • element

        public elemental2.dom.HTMLElement element()
        Specified by:
        element in interface org.jboss.elemento.IsElement<elemental2.dom.HTMLElement>