Class NotificationOptions
java.lang.Object
com.openfin.desktop.JsonBean
com.openfin.desktop.notifications.NotificationOptions
public class NotificationOptions extends JsonBean
Configuration options for constructing a Notifications object.
- Author:
- Anthony
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
STICKY_STICKY
static java.lang.String
STICKY_TRANSIENT
-
Constructor Summary
Constructors Constructor Description NotificationOptions(java.lang.String title, java.lang.String body, java.lang.String category)
NotificationOptions(org.json.JSONObject json)
-
Method Summary
Modifier and Type Method Description java.lang.String
getBody()
ButtonOptions[]
getButtons()
java.lang.String
getCategory()
CustomData
getCustomData()
java.util.Date
getDate()
java.util.Date
getExpires()
java.lang.String
getIcon()
java.lang.String
getId()
NotificationIndicator
getIndicator()
NotificationActionResult
getOnClose()
NotificationActionResult
getOnExpire()
NotificationActionResult
getOnSelect()
java.lang.String
getSticky()
java.lang.String
getTitle()
void
setButtons(ButtonOptions... buttons)
void
setCustomData(CustomData customData)
void
setDate(java.util.Date date)
void
setExpires(java.util.Date date)
void
setIcon(java.lang.String icon)
void
setId(java.lang.String id)
void
setIndicator(NotificationIndicator indicator)
void
setOnClose(NotificationActionResult onClose)
void
setOnExpire(NotificationActionResult onExpire)
void
setOnSelect(NotificationActionResult onSelect)
void
setSticky(java.lang.String sticky)
Methods inherited from class com.openfin.desktop.JsonBean
get, getArray, getBoolean, getBooleanValue, getBooleanValue, getDoubleValue, getDoubleValue, getInteger, getIntegerValue, getJson, getJsonBean, getJsonBean, getJsonBeanList, getJsonCopy, getJsonValue, getList, getRectangle, getString, put, setArray, setBoolean, setInteger, setJsonArray, setJsonBean, setLong, setRectangle, setString, toString
-
Field Details
-
STICKY_STICKY
public static final java.lang.String STICKY_STICKY- See Also:
- Constant Field Values
-
STICKY_TRANSIENT
public static final java.lang.String STICKY_TRANSIENT- See Also:
- Constant Field Values
-
-
Constructor Details
-
NotificationOptions
public NotificationOptions(java.lang.String title, java.lang.String body, java.lang.String category) -
NotificationOptions
public NotificationOptions(org.json.JSONObject json)
-
-
Method Details
-
getBody
public java.lang.String getBody() -
getCategory
public java.lang.String getCategory() -
getDate
public java.util.Date getDate() -
setDate
public void setDate(java.util.Date date) -
getExpires
public java.util.Date getExpires() -
setExpires
public void setExpires(java.util.Date date) -
getId
public java.lang.String getId() -
setId
public void setId(java.lang.String id) -
getIcon
public java.lang.String getIcon() -
setIcon
public void setIcon(java.lang.String icon) -
getSticky
public java.lang.String getSticky() -
setSticky
public void setSticky(java.lang.String sticky) -
getIndicator
-
setIndicator
-
getTitle
public java.lang.String getTitle() -
setButtons
-
getButtons
-
getOnClose
-
setOnClose
-
getOnExpire
-
setOnExpire
-
getOnSelect
-
setOnSelect
-
getCustomData
-
setCustomData
-