public class ApplicationOptions extends Object
Constructor and Description |
---|
ApplicationOptions(org.json.JSONObject options)
Constructs an instance with the passed options.
|
ApplicationOptions(String name,
String uuid,
String url)
Constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getApplicationIcon()
Gets URL of application icon
|
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
|
ApplicationOptions |
put(String key,
Object value)
Set value for a property
|
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
|
public ApplicationOptions(org.json.JSONObject options)
options
- Options for the applicationpublic String getName()
public String getUUID()
public String getURL()
public void setMainWindowOptions(WindowOptions options)
options
- Options of main windowpublic WindowOptions getMainWindowOptions()
public void setApplicationIcon(String applicationIcon)
applicationIcon
- URLpublic String getApplicationIcon()
public void setVersion(String version)
version
- Versionpublic String getVersion()
public org.json.JSONObject getJson()
protected String getStringValue(String property)
property
- Property namepublic ApplicationOptions put(String key, Object value) throws org.json.JSONException
key
- name of the propertyvalue
- valueorg.json.JSONException
Copyright © 2017. All rights reserved.