Class Notification<RECORD>


  • public class Notification<RECORD>
    extends java.lang.Object
    • Constructor Detail

      • Notification

        public Notification​(RECORD message)
        Used to display a simple message (text only).
        Parameters:
        message - Normally a String, but may be any object (using toString()).
      • Notification

        public Notification​(Template template,
                            RECORD record)
    • Method Detail

      • createWithIconAndCaption

        public static Notification createWithIconAndCaption​(org.teamapps.icons.api.Icon icon,
                                                            java.lang.String text)
      • createWithIconAndTextAndDescription

        public static Notification createWithIconAndTextAndDescription​(org.teamapps.icons.api.Icon icon,
                                                                       java.lang.String text,
                                                                       java.lang.String description)
      • createUiNotification

        public org.teamapps.dto.UiNotification createUiNotification()
      • getTemplate

        public Template getTemplate()
      • getRecord

        public RECORD getRecord()
      • getBackgroundColor

        public org.teamapps.common.format.Color getBackgroundColor()
      • setBackgroundColor

        public Notification setBackgroundColor​(org.teamapps.common.format.Color backgroundColor)
      • getDisplayTimeInMillis

        public int getDisplayTimeInMillis()
      • setDisplayTimeInMillis

        public Notification setDisplayTimeInMillis​(int displayTimeInMillis)
      • isDismissable

        public boolean isDismissable()
      • setDismissable

        public Notification setDismissable​(boolean dismissable)
      • isShowProgressBar

        public boolean isShowProgressBar()
      • setShowProgressBar

        public Notification setShowProgressBar​(boolean showProgressBar)