com.openfin.desktop
Class ApplicationOptions

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

public class ApplicationOptions
extends Object

Helper object that provides getters/setters for the various options needed for creating an Application.


Constructor Summary
ApplicationOptions(org.json.JSONObject options)
          Constructs an instance with the passed options.
ApplicationOptions(String name, String uuid, String url)
          Constructor
 
Method Summary
 String getApplicationIcon()
          Gets URL of application icon
protected  org.json.JSONObject getJson()
          Gets JSON representation of options
 WindowOptions getMainWindowOptions()
          Get options of main window
 String getName()
          Gets name of the application
protected  String getStringValue(String property)
          Helper method for retrieving string value of a property
 String getURL()
          Gets URL of the application
 String getUUID()
          Gets UUID of the application
 String getVersion()
          Gets version of the application
 void setApplicationIcon(String applicationIcon)
          Sets URL of application icon
 void setMainWindowOptions(WindowOptions options)
          Sets options of main window of the application
 void setVersion(String version)
          Sets version of the application
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationOptions

public ApplicationOptions(org.json.JSONObject options)
Constructs an instance with the passed options.

Parameters:
options - Options for the application

ApplicationOptions

public ApplicationOptions(String name,
                          String uuid,
                          String url)
Constructor

Parameters:
name - Name of the application
uuid - UUID of the application
url - URL of the application
Method Detail

getName

public String getName()
Gets name of the application

Returns:
Name of the application

getUUID

public String getUUID()
Gets UUID of the application

Returns:
UUID of the application

getURL

public String getURL()
Gets URL of the application

Returns:
URL of the application

setMainWindowOptions

public void setMainWindowOptions(WindowOptions options)
Sets options of main window of the application

Parameters:
options - Options of main window

getMainWindowOptions

public WindowOptions getMainWindowOptions()
Get options of main window

Returns:
Options of main window

setApplicationIcon

public void setApplicationIcon(String applicationIcon)
Sets URL of application icon

Parameters:
applicationIcon - URL

getApplicationIcon

public String getApplicationIcon()
Gets URL of application icon

Returns:
URL

setVersion

public void setVersion(String version)
Sets version of the application

Parameters:
version - Version

getVersion

public String getVersion()
Gets version of the application

Returns:
Version

getJson

protected org.json.JSONObject getJson()
Gets JSON representation of options

Returns:
JSONObject

getStringValue

protected String getStringValue(String property)
Helper method for retrieving string value of a property

Parameters:
property - Property name
Returns:
Value of the property


Copyright © 2016. All rights reserved.