Class ComponentConfig
java.lang.Object
com.inductiveautomation.perspective.common.config.ComponentConfig
A Gson serializable representation of a Component definition.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classstatic classCustom GSON serializer used to omit empty stuff to keep the serialized components small as possible.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionA component may have children.static final Typecom.inductiveautomation.ignition.common.gson.JsonObjectCustom properties associated with the component, with similar structure topropsContains configuration for how to respond to events.com.inductiveautomation.ignition.common.gson.JsonObjectMeta properties associated with the component, with similar structure toprops.com.inductiveautomation.ignition.common.gson.JsonObjectPositional properties associated with the component, generally specific to a single instance of a component.Contains configuration associated with specific properties, e.g.com.inductiveautomation.ignition.common.gson.JsonObjectA map of properties that this component has, where the key is the property key, and the Object represents the value of the property, of an arbitrary type.Contains scripting configuration for the component like custom methods and message handlers.The type of component, as defined when registering the PerspectiveComponentConfig meta object in the client.longThe version of this component.
- 
Constructor SummaryConstructorsConstructorDescriptionComponentConfig(long version, String type, com.inductiveautomation.ignition.common.gson.JsonObject props, com.inductiveautomation.ignition.common.gson.JsonObject custom, com.inductiveautomation.ignition.common.gson.JsonObject meta, com.inductiveautomation.ignition.common.gson.JsonObject position, EventConfig events, PropertyConfigCollection propConfig, ScriptConfig scripts, List<ComponentConfig> children) 
- 
Method Summary
- 
Field Details- 
versionpublic long versionThe version of this component.
- 
typeThe type of component, as defined when registering the PerspectiveComponentConfig meta object in the client.
- 
propspublic com.inductiveautomation.ignition.common.gson.JsonObject propsA map of properties that this component has, where the key is the property key, and the Object represents the value of the property, of an arbitrary type. Values may be a simple primitive value, or represent its own document shape with deeper structure. These properties are generally specific to the component type.
- 
custompublic com.inductiveautomation.ignition.common.gson.JsonObject customCustom properties associated with the component, with similar structure toprops
- 
metapublic com.inductiveautomation.ignition.common.gson.JsonObject metaMeta properties associated with the component, with similar structure toprops. In general, all components have the same set of meta properties.
- 
positionpublic com.inductiveautomation.ignition.common.gson.JsonObject positionPositional properties associated with the component, generally specific to a single instance of a component.
- 
eventsContains configuration for how to respond to events.
- 
propConfigContains configuration associated with specific properties, e.g. bindings, persistence, etc.
- 
scriptsContains scripting configuration for the component like custom methods and message handlers.
- 
childrenA component may have children. This list represents the children of the component.
- 
COMPONENT_LIST_TYPE_TOKEN
 
- 
- 
Constructor Details- 
ComponentConfigpublic ComponentConfig()
- 
ComponentConfigpublic ComponentConfig(long version, String type, com.inductiveautomation.ignition.common.gson.JsonObject props, com.inductiveautomation.ignition.common.gson.JsonObject custom, com.inductiveautomation.ignition.common.gson.JsonObject meta, com.inductiveautomation.ignition.common.gson.JsonObject position, EventConfig events, PropertyConfigCollection propConfig, ScriptConfig scripts, List<ComponentConfig> children) 
 
- 
- 
Method Details