Package com.openfin.desktop
Class ApplicationOptions
java.lang.Object
com.openfin.desktop.JsonBean
com.openfin.desktop.ApplicationOptions
- Direct Known Subclasses:
PlatformOptions
public class ApplicationOptions extends JsonBean
Helper object that provides getters/setters for the
various options needed for creating an Application.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ApplicationOptions(java.lang.String name, java.lang.String uuid, java.lang.String url)
ConstructorApplicationOptions(org.json.JSONObject options)
Constructs an instance with the passed options. -
Method Summary
Modifier and Type Method Description java.lang.String
getApplicationIcon()
Gets URL of application iconorg.json.JSONObject
getJson()
Gets the underlying JSONObjectWindowOptions
getMainWindowOptions()
Get options of main windowjava.lang.String
getName()
Gets name of the applicationjava.lang.String
getURL()
Gets URL of the applicationjava.lang.String
getUUID()
Gets UUID of the applicationjava.lang.String
getVersion()
Gets version of the applicationvoid
setApplicationIcon(java.lang.String applicationIcon)
Sets URL of application iconvoid
setMainWindowOptions(WindowOptions options)
Sets options of main window of the applicationvoid
setVersion(java.lang.String version)
Sets version of the applicationMethods inherited from class com.openfin.desktop.JsonBean
get, getArray, getBoolean, getBooleanValue, getBooleanValue, getDoubleValue, getDoubleValue, getInteger, getIntegerValue, getJsonBean, getJsonBean, getJsonBeanList, getJsonCopy, getJsonValue, getList, getRectangle, getString, put, setArray, setBoolean, setInteger, setJsonArray, setJsonBean, setLong, setRectangle, setString, toString
-
Constructor Details
-
ApplicationOptions
public ApplicationOptions(org.json.JSONObject options)Constructs an instance with the passed options.- Parameters:
options
- Options for the application
-
ApplicationOptions
public ApplicationOptions(java.lang.String name, java.lang.String uuid, java.lang.String url)Constructor- Parameters:
name
- Name of the applicationuuid
- UUID of the applicationurl
- URL of the application
-
-
Method Details
-
getName
public java.lang.String getName()Gets name of the application- Returns:
- Name of the application
-
getUUID
public java.lang.String getUUID()Gets UUID of the application- Returns:
- UUID of the application
-
getURL
public java.lang.String getURL()Gets URL of the application- Returns:
- URL of the application
-
setMainWindowOptions
Sets options of main window of the application- Parameters:
options
- Options of main window
-
getMainWindowOptions
Get options of main window- Returns:
- Options of main window
-
setApplicationIcon
public void setApplicationIcon(java.lang.String applicationIcon)Sets URL of application icon- Parameters:
applicationIcon
- URL
-
getApplicationIcon
public java.lang.String getApplicationIcon()Gets URL of application icon- Returns:
- URL
-
setVersion
public void setVersion(java.lang.String version)Sets version of the application- Parameters:
version
- Version
-
getVersion
public java.lang.String getVersion()Gets version of the application- Returns:
- Version
-
getJson
public org.json.JSONObject getJson()Description copied from class:JsonBean
Gets the underlying JSONObject
-