Class NotificationViewBuilder
java.lang.Object
com.nomagic.magicdraw.ui.notification.NotificationViewBuilder
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
-
Method Summary
Modifier and TypeMethodDescriptionabstract Component
createNotificationView
(AbstractNotification notification, Component owner, NotificationViewConfig config) Constructs popup that displays message to the userabstract void
hideNotification
(String notificationID) Closes all notifications with specified idabstract void
hideNotifications
(Component owner) Closes notifications that belong to provided componentabstract boolean
Returns true if notification with specified id is still visible.abstract Component
showNotificationView
(AbstractNotification notification, Component owner, NotificationViewConfig config) Shows popup that displays message to the user
-
Constructor Details
-
NotificationViewBuilder
public NotificationViewBuilder()
-
-
Method Details
-
createNotificationView
public abstract Component createNotificationView(AbstractNotification notification, @CheckForNull 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 Component showNotificationView(AbstractNotification notification, @CheckForNull 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
Closes all notifications with specified id- Parameters:
notificationID
- notification id
-
hideNotifications
Closes notifications that belong to provided component -
isVisible
Returns true if notification with specified id is still visible.- Parameters:
notificationID
- notification id
-