Class AbstractNotification
- java.lang.Object
-
- com.nomagic.magicdraw.ui.notification.AbstractNotification
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
Notification
@OpenApi public abstract class AbstractNotification extends java.lang.Object implements java.io.SerializableBase MagicDraw notification composed of title, message text and list HRefRunnable actions- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddHRefAction(HRefRunnable r)Adds href action to list of already existing list of actions.HRefRunnablegetHRefAction(java.lang.String href)Gets href action with a given href.java.lang.StringgetID()Returns notification id.java.lang.StringgetLongText()Returns long notification textjava.lang.StringgetText()Returns notification message text.java.lang.StringgetTitle()Returns notification title.voidremoveHRefAction(HRefRunnable r)Removes given href action.voidremoveHRefAction(java.lang.String href)Removes given href action with specified href id.voidsetLongText(java.lang.String longText)Sets notification long textvoidsetText(java.lang.String text)Sets notification message text.voidsetTitle(java.lang.String title)Sets notification title.
-
-
-
Method Detail
-
getID
@OpenApi public java.lang.String getID()
Returns notification id.- Returns:
- notification id
-
getTitle
@OpenApi @CheckForNull public java.lang.String getTitle()
Returns notification title.- Returns:
- notification title
-
setTitle
@OpenApi public void setTitle(java.lang.String title)
Sets notification title.- Parameters:
title- notification title
-
getText
@OpenApi @CheckForNull public java.lang.String getText()
Returns notification message text.- Returns:
- notification text
-
setText
@OpenApi public void setText(java.lang.String text)
Sets notification message text.- Parameters:
text- notification text
-
getLongText
@OpenApi @CheckForNull public java.lang.String getLongText()
Returns long notification text- Returns:
- long notification text
-
setLongText
@OpenApi public void setLongText(@CheckForNull java.lang.String longText)Sets notification long text- Parameters:
longText- notification long text
-
addHRefAction
@OpenApi public void addHRefAction(HRefRunnable r)
Adds href action to list of already existing list of actions.- Parameters:
r- given href action
-
removeHRefAction
@OpenApi public void removeHRefAction(HRefRunnable r)
Removes given href action.- Parameters:
r- href action to remove
-
removeHRefAction
@OpenApi public void removeHRefAction(java.lang.String href)
Removes given href action with specified href id.- Parameters:
href- href id to remove from href list
-
getHRefAction
@OpenApi @CheckForNull public HRefRunnable getHRefAction(java.lang.String href)
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
-
-