java.lang.Object
com.inductiveautomation.perspective.common.config.ViewConfig

public class ViewConfig extends Object

Config object for a single view definition.

This object is designed to be serialized to JSON format using gson. This JSON document is what is stored inside the project resource record for this view.

  • Field Details

    • RESOURCE_TYPE

      public static final ResourceType RESOURCE_TYPE
    • RESOURCE_FILENAME

      public static final String RESOURCE_FILENAME
      See Also:
    • root

      public ComponentConfig root
      The root container of the view.
    • props

      public com.inductiveautomation.ignition.common.gson.JsonObject props
      The props of the view itself (like the default size)
    • custom

      public com.inductiveautomation.ignition.common.gson.JsonObject custom
      Collection of custom (internal) properties defined on this view
    • params

      public com.inductiveautomation.ignition.common.gson.JsonObject params
      Collection of properties that hold the default values for the parameters
    • propConfig

      @Nullable public PropertyConfigCollection propConfig
      The configs for individual properties
    • events

      @Nullable public EventConfig events
      Configs for event/action handling
    • permissions

      @Nullable public PermissionsConfig permissions
      Permissions config for allowing access to the view
  • Constructor Details

    • ViewConfig

      public ViewConfig()
    • ViewConfig

      public ViewConfig(ComponentConfig root)
  • Method Details