Class NotificationViewConfig

  • All Implemented Interfaces:
    java.lang.Cloneable

    @OpenApiAll
    public class NotificationViewConfig
    extends java.lang.Object
    implements java.lang.Cloneable
    Helper class containing parameters that controls notification visual attributes and behavior.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      NotificationViewConfig clone()  
      java.awt.Color getBackgroundColor()
      Returns notification background color.
      int getExpirationTime()
      Returns time amount in seconds for how long notification will be displayed.
      javax.swing.Icon getIcon()
      Returns notification icon.
      void setBackgroundColor​(java.awt.Color backgroundColor)
      Sets notification background color.
      void setExpirationTime​(int expirationTime)
      Sets time amount in seconds for how long notification will be displayed.
      void setIcon​(javax.swing.Icon icon)
      Sets notification icon.
      void setShowMultipleNotifications​(boolean showMultipleNotifications)
      Sets if same notification can be displayed many times simultaneously.
      boolean showMultipleNotifications()
      Indicates if same notification can be shown many times simultaneously.
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NotificationViewConfig

        public NotificationViewConfig()
    • Method Detail

      • getIcon

        public javax.swing.Icon getIcon()
        Returns notification icon.
        Returns:
        notification icon
      • setIcon

        public void setIcon​(javax.swing.Icon icon)
        Sets notification icon.
        Parameters:
        icon - notification icon
      • getBackgroundColor

        public java.awt.Color getBackgroundColor()
        Returns notification background color.
        Returns:
        notification background color
      • setBackgroundColor

        public void setBackgroundColor​(java.awt.Color backgroundColor)
        Sets notification background color.
        Parameters:
        backgroundColor - notification background color.
      • getExpirationTime

        public int getExpirationTime()
        Returns time amount in seconds for how long notification will be displayed.
        Returns:
        time amount in seconds
      • setExpirationTime

        public void setExpirationTime​(int expirationTime)
        Sets time amount in seconds for how long notification will be displayed.
        Parameters:
        expirationTime - time amount in seconds
      • showMultipleNotifications

        public boolean showMultipleNotifications()
        Indicates if same notification can be shown many times simultaneously. If multiple request to show the notification are sent while this property is set to false, only first request will be honored. All others request will be ignored.
        Returns:
        true if same notification can be shown many times simultaneously.
      • setShowMultipleNotifications

        public void setShowMultipleNotifications​(boolean showMultipleNotifications)
        Sets if same notification can be displayed many times simultaneously.
        Parameters:
        showMultipleNotifications - notification simultaneous display state