Class NotificationViewBuilder
- java.lang.Object
-
- com.nomagic.magicdraw.ui.notification.NotificationViewBuilder
-
@OpenApiAll public abstract class NotificationViewBuilder extends java.lang.Object
Base class for MagicDraw notification builders, that creates and shows notification popups. User who wants to display his own notification popups in MagicDraw, must create builder implementing this interface and register it with NotificationManager
-
-
Constructor Summary
Constructors Constructor Description NotificationViewBuilder()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract java.awt.Component
createNotificationView(AbstractNotification notification, java.awt.Component owner, NotificationViewConfig config)
Constructs popup that displays message to the userabstract void
hideNotification(java.lang.String notificationID)
Closes all notifications with specified idabstract void
hideNotifications(java.awt.Component owner)
Closes notifications that belong to provided componentabstract boolean
isVisible(java.lang.String notificationID)
Returns true if notification with specified id is still visible.abstract java.awt.Component
showNotificationView(AbstractNotification notification, java.awt.Component owner, NotificationViewConfig config)
Shows popup that displays message to the user
-
-
-
Method Detail
-
createNotificationView
public abstract java.awt.Component createNotificationView(AbstractNotification notification, @CheckForNull java.awt.Component owner, @CheckForNull NotificationViewConfig config)
Constructs popup that displays message to the user- Parameters:
notification
- notification dataowner
- newly created popup ownerconfig
- notification view configuration parameters- Returns:
- created popup that displays message to the user
-
showNotificationView
@CheckForNull public abstract java.awt.Component showNotificationView(AbstractNotification notification, @CheckForNull java.awt.Component owner, @CheckForNull NotificationViewConfig config)
Shows popup that displays message to the user- Parameters:
notification
- notification dataowner
- newly created popup ownerconfig
- notification view configuration parameters- Returns:
- popup that displays message to the user
-
hideNotification
public abstract void hideNotification(@CheckForNull java.lang.String notificationID)
Closes all notifications with specified id- Parameters:
notificationID
- notification id
-
hideNotifications
public abstract void hideNotifications(@CheckForNull java.awt.Component owner)
Closes notifications that belong to provided component
-
isVisible
public abstract boolean isVisible(@CheckForNull java.lang.String notificationID)
Returns true if notification with specified id is still visible.- Parameters:
notificationID
- notification id
-
-