Class AbstractNotification
java.lang.Object
com.nomagic.magicdraw.ui.notification.AbstractNotification
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Notification
Base MagicDraw notification composed of title, message text and list HRefRunnable actions
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds href action to list of already existing list of actions.getHRefAction
(String href) Gets href action with a given href.getID()
Returns notification id.Returns long notification textgetText()
Returns notification message text.getTitle()
Returns notification title.void
Removes given href action.void
removeHRefAction
(String href) Removes given href action with specified href id.void
setLongText
(String longText) Sets notification long textvoid
Sets notification message text.void
Sets notification title.
-
Method Details
-
getID
Returns notification id.- Returns:
- notification id
-
getTitle
Returns notification title.- Returns:
- notification title
-
setTitle
Sets notification title.- Parameters:
title
- notification title
-
getText
Returns notification message text.- Returns:
- notification text
-
setText
Sets notification message text.- Parameters:
text
- notification text
-
getLongText
Returns long notification text- Returns:
- long notification text
-
setLongText
Sets notification long text- Parameters:
longText
- notification long text
-
addHRefAction
Adds href action to list of already existing list of actions.- Parameters:
r
- given href action
-
removeHRefAction
Removes given href action.- Parameters:
r
- href action to remove
-
removeHRefAction
Removes given href action with specified href id.- Parameters:
href
- href id to remove from href list
-
getHRefAction
Gets href action with a given href. If action does not exist, null is returned.- Parameters:
href
- action href- Returns:
- href action if found, null otherwise
-