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.
-
-
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetApplicationIcon()Gets URL of application iconorg.json.JSONObjectgetJson()Gets the underlying JSONObjectWindowOptionsgetMainWindowOptions()Get options of main windowjava.lang.StringgetName()Gets name of the applicationjava.lang.StringgetURL()Gets URL of the applicationjava.lang.StringgetUUID()Gets UUID of the applicationjava.lang.StringgetVersion()Gets version of the applicationvoidsetApplicationIcon(java.lang.String applicationIcon)Sets URL of application iconvoidsetMainWindowOptions(WindowOptions options)Sets options of main window of the applicationvoidsetVersion(java.lang.String version)Sets version of the application-
Methods 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 Detail
-
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 Detail
-
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
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(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
-
-