public final class NotificationManager
extends java.lang.Object
implements javax.swing.SwingConstants
WebNotificationPopup,
DisplayType| Constructor and Description |
|---|
NotificationManager() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getCascadeAmount()
Returns amount of cascaded in a row popups.
|
static DisplayType |
getDisplayType()
Retyrns notification display type.
|
static int |
getGap()
Returns gap between notifications.
|
static int |
getLocation()
Returns notifications display location.
|
static java.awt.Insets |
getMargin()
Returns notifications side margin.
|
static void |
hideAllNotifications()
Hides all visible notifications.
|
static boolean |
isCascade()
Returns whether popups should be cascaded or not.
|
static void |
setCascade(boolean cascade)
Sets whether popups should be cascaded or not.
|
static void |
setCascadeAmount(int cascadeAmount)
Sets amount of cascaded in a row popups.
|
static void |
setDisplayType(DisplayType displayType)
Sets notification display type.
|
static void |
setGap(int gap)
Sets gap between notifications.
|
static void |
setLocation(int location)
Sets notifications display location.
|
static void |
setMargin(java.awt.Insets margin)
Sets notifications side margin.
|
static void |
setMargin(int margin)
Sets notifications side margin.
|
static void |
setMargin(int top,
int left,
int bottom,
int right)
Sets notifications side margin.
|
static WebNotificationPopup |
showNotification(java.awt.Component content)
Returns displayed notification.
|
static WebNotificationPopup |
showNotification(java.awt.Component showFor,
java.awt.Component content)
Returns displayed notification.
|
static WebNotificationPopup |
showNotification(java.awt.Component showFor,
java.awt.Component content,
javax.swing.Icon icon)
Returns displayed notification.
|
static WebNotificationPopup |
showNotification(java.awt.Component showFor,
java.awt.Component content,
javax.swing.Icon icon,
NotificationOption... options)
Returns displayed notification.
|
static WebNotificationPopup |
showNotification(java.awt.Component showFor,
java.awt.Component content,
NotificationOption... options)
Returns displayed notification.
|
static WebNotificationPopup |
showNotification(java.awt.Component content,
javax.swing.Icon icon)
Returns displayed notification.
|
static WebNotificationPopup |
showNotification(java.awt.Component content,
javax.swing.Icon icon,
NotificationOption... options)
Returns displayed notification.
|
static WebNotificationPopup |
showNotification(java.awt.Component content,
NotificationOption... options)
Returns displayed notification.
|
static WebNotificationPopup |
showNotification(java.awt.Component showFor,
java.lang.String content)
Returns displayed notification.
|
static WebNotificationPopup |
showNotification(java.awt.Component showFor,
java.lang.String content,
javax.swing.Icon icon)
Returns displayed notification.
|
static WebNotificationPopup |
showNotification(java.awt.Component showFor,
java.lang.String content,
javax.swing.Icon icon,
NotificationOption... options)
Returns displayed notification.
|
static WebNotificationPopup |
showNotification(java.awt.Component showFor,
java.lang.String content,
NotificationOption... options)
Returns displayed notification.
|
static WebNotificationPopup |
showNotification(java.awt.Component showFor,
WebNotificationPopup notification)
Displays notification on popup layer.
|
static WebNotificationPopup |
showNotification(java.lang.String content)
Returns displayed notification.
|
static WebNotificationPopup |
showNotification(java.lang.String content,
javax.swing.Icon icon)
Returns displayed notification.
|
static WebNotificationPopup |
showNotification(java.lang.String content,
javax.swing.Icon icon,
NotificationOption... options)
Returns displayed notification.
|
static WebNotificationPopup |
showNotification(java.lang.String content,
NotificationOption... options)
Returns displayed notification.
|
static WebNotificationPopup |
showNotification(WebNotificationPopup notification)
Displays notification on popup layer.
|
static void |
updateNotificationLayouts()
Optimized layout updates for all visible notifications.
|
public static int getLocation()
public static void setLocation(int location)
location - new notifications display locationpublic static DisplayType getDisplayType()
public static void setDisplayType(DisplayType displayType)
displayType - new notification display typepublic static java.awt.Insets getMargin()
public static void setMargin(int margin)
margin - marginpublic static void setMargin(int top,
int left,
int bottom,
int right)
top - top marginleft - left marginbottom - bottom marginright - right marginpublic static void setMargin(java.awt.Insets margin)
margin - new notifications side marginpublic static int getGap()
public static void setGap(int gap)
gap - new gap between notificationspublic static boolean isCascade()
public static void setCascade(boolean cascade)
cascade - whether popups should be cascaded or notpublic static int getCascadeAmount()
public static void setCascadeAmount(int cascadeAmount)
cascadeAmount - new amount of cascaded in a row popupspublic static void updateNotificationLayouts()
public static void hideAllNotifications()
public static WebNotificationPopup showNotification(java.lang.String content)
content - notification text contentpublic static WebNotificationPopup showNotification(java.lang.String content, javax.swing.Icon icon)
content - notification text contenticon - notification iconpublic static WebNotificationPopup showNotification(java.awt.Component showFor, java.lang.String content)
showFor - component used to determine window where notification should be displayedcontent - notification text contentpublic static WebNotificationPopup showNotification(java.awt.Component showFor, java.lang.String content, javax.swing.Icon icon)
showFor - component used to determine window where notification should be displayedcontent - notification text contenticon - notification iconpublic static WebNotificationPopup showNotification(java.awt.Component content)
content - notification contentpublic static WebNotificationPopup showNotification(java.awt.Component content, javax.swing.Icon icon)
content - notification contenticon - notification iconpublic static WebNotificationPopup showNotification(java.awt.Component showFor, java.awt.Component content)
showFor - component used to determine window where notification should be displayedcontent - notification contentpublic static WebNotificationPopup showNotification(java.awt.Component showFor, java.awt.Component content, javax.swing.Icon icon)
showFor - component used to determine window where notification should be displayedcontent - notification contenticon - notification iconpublic static WebNotificationPopup showNotification(java.lang.String content, NotificationOption... options)
content - notification text contentoptions - notification selectable optionspublic static WebNotificationPopup showNotification(java.lang.String content, javax.swing.Icon icon, NotificationOption... options)
content - notification text contenticon - notification iconoptions - notification selectable optionspublic static WebNotificationPopup showNotification(java.awt.Component showFor, java.lang.String content, NotificationOption... options)
showFor - component used to determine window where notification should be displayedcontent - notification text contentoptions - notification selectable optionspublic static WebNotificationPopup showNotification(java.awt.Component showFor, java.lang.String content, javax.swing.Icon icon, NotificationOption... options)
showFor - component used to determine window where notification should be displayedcontent - notification text contenticon - notification iconoptions - notification selectable optionspublic static WebNotificationPopup showNotification(java.awt.Component content, NotificationOption... options)
content - notification contentoptions - notification selectable optionspublic static WebNotificationPopup showNotification(java.awt.Component content, javax.swing.Icon icon, NotificationOption... options)
content - notification contenticon - notification iconoptions - notification selectable optionspublic static WebNotificationPopup showNotification(java.awt.Component showFor, java.awt.Component content, NotificationOption... options)
showFor - component used to determine window where notification should be displayedcontent - notification contentoptions - notification selectable optionspublic static WebNotificationPopup showNotification(java.awt.Component showFor, java.awt.Component content, javax.swing.Icon icon, NotificationOption... options)
showFor - component used to determine window where notification should be displayedcontent - notification contenticon - notification iconoptions - notification selectable optionspublic static WebNotificationPopup showNotification(WebNotificationPopup notification)
notification - notification to displaypublic static WebNotificationPopup showNotification(java.awt.Component showFor, WebNotificationPopup notification)
showFor - component used to determine window where notification should be displayednotification - notification to display