Class ViewConfig
- java.lang.Object
- 
- com.inductiveautomation.perspective.common.config.ViewConfig
 
- 
 public class ViewConfig extends java.lang.ObjectConfig 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. 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classViewConfig.RuntimeGsonAdapterstatic classViewConfig.StandardGsonAdapter
 - 
Field SummaryFields Modifier and Type Field Description com.inductiveautomation.ignition.common.gson.JsonObjectcustomCollection of custom (internal) properties defined on this viewEventConfigeventsConfigs for event/action handlingcom.inductiveautomation.ignition.common.gson.JsonObjectparamsCollection of properties that hold the default values for the parametersPermissionsConfigpermissionsPermissions config for allowing access to the viewPropertyConfigCollectionpropConfigThe configs for individual propertiescom.inductiveautomation.ignition.common.gson.JsonObjectpropsThe props of the view itself (like the default size)static java.lang.StringRESOURCE_FILENAMEstatic ResourceTypeRESOURCE_TYPEComponentConfigrootThe root container of the view.
 - 
Constructor SummaryConstructors Constructor Description ViewConfig()ViewConfig(ComponentConfig root)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)static ViewConfigfromProjectResource(ProjectResource resource, com.inductiveautomation.ignition.common.gson.Gson gson)java.util.stream.Stream<org.apache.commons.lang3.tuple.Pair<java.lang.String,ParamType>>getParamDefinitions()java.util.Optional<PermissionsConfig>getPermissions()inthashCode()java.lang.StringtoString()
 
- 
- 
- 
Field Detail- 
RESOURCE_TYPEpublic static final ResourceType RESOURCE_TYPE 
 - 
RESOURCE_FILENAMEpublic static final java.lang.String RESOURCE_FILENAME - See Also:
- Constant Field Values
 
 - 
rootpublic ComponentConfig root The root container of the view.
 - 
propspublic com.inductiveautomation.ignition.common.gson.JsonObject props The props of the view itself (like the default size)
 - 
custompublic com.inductiveautomation.ignition.common.gson.JsonObject custom Collection of custom (internal) properties defined on this view
 - 
paramspublic com.inductiveautomation.ignition.common.gson.JsonObject params Collection of properties that hold the default values for the parameters
 - 
propConfigpublic PropertyConfigCollection propConfig The configs for individual properties
 - 
eventspublic EventConfig events Configs for event/action handling
 - 
permissionspublic PermissionsConfig permissions Permissions config for allowing access to the view
 
- 
 - 
Constructor Detail- 
ViewConfigpublic ViewConfig() 
 - 
ViewConfigpublic ViewConfig(ComponentConfig root) 
 
- 
 - 
Method Detail- 
fromProjectResourcepublic static ViewConfig fromProjectResource(ProjectResource resource, com.inductiveautomation.ignition.common.gson.Gson gson) 
 - 
getParamDefinitionspublic java.util.stream.Stream<org.apache.commons.lang3.tuple.Pair<java.lang.String,ParamType>> getParamDefinitions() 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object o) - Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
getPermissions@Nonnull public java.util.Optional<PermissionsConfig> getPermissions() 
 
- 
 
-