com.openfin.desktop
Class NotificationOptions

java.lang.Object
  extended by com.openfin.desktop.NotificationOptions

public class NotificationOptions
extends Object

Helper object that provides getters/setters for the various options needed for creating a Notification.

Since:
2/10/14

Constructor Summary
NotificationOptions(String url)
           
 
Method Summary
 org.json.JSONObject getMessage()
          Gets Message property of the notification
 String getMessageText()
          Gets Message property of the notification as String
 Integer getTimeout()
          Gets timeout property of the notification
 String getURL()
          Gets URL property of the notification
 void setMessage(org.json.JSONObject message)
          Sets Message property of the notification
 void setMessageText(String message)
          Sets Message property of the notification as String
 void setTimeout(Integer timeout)
          Sets timeout property of the notification
 void setURL(String url)
          Sets URL property of the notification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotificationOptions

public NotificationOptions(String url)
Method Detail

getURL

public String getURL()
Gets URL property of the notification

Returns:
URL

setURL

public void setURL(String url)
Sets URL property of the notification


getMessage

public org.json.JSONObject getMessage()
Gets Message property of the notification

Returns:
message property

setMessage

public void setMessage(org.json.JSONObject message)
Sets Message property of the notification

Parameters:
message - value of message

getMessageText

public String getMessageText()
Gets Message property of the notification as String

Returns:
message string

setMessageText

public void setMessageText(String message)
Sets Message property of the notification as String

Parameters:
message -

getTimeout

public Integer getTimeout()
Gets timeout property of the notification

Returns:
timeout in milliseconds

setTimeout

public void setTimeout(Integer timeout)
Sets timeout property of the notification

Parameters:
timeout - in milliseconds


Copyright © 2016. All rights reserved.