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 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 application
      uuid - UUID of the application
      url - 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

      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
    • getJson

      public org.json.JSONObject getJson()
      Description copied from class: JsonBean
      Gets the underlying JSONObject
      Overrides:
      getJson in class JsonBean
      Returns:
      JSONObject