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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ComponentcreateNotificationView(AbstractNotification notification, Component owner, NotificationViewConfig config) Constructs popup that displays message to the userabstract voidhideNotification(String notificationID) Closes all notifications with specified idabstract voidhideNotifications(Component owner) Closes notifications that belong to provided componentabstract booleanReturns true if notification with specified id is still visible.abstract ComponentshowNotificationView(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
-