Class ComponentPropsDocumentModel
java.lang.Object
com.inductiveautomation.ignition.client.jsonedit.DocumentModel
com.inductiveautomation.perspective.designer.workspace.propertyeditor.ComponentPropsDocumentModel
Document model that knows how to write values back to the underlying property tree
- 
Field SummaryFieldsFields inherited from class com.inductiveautomation.ignition.client.jsonedit.DocumentModelchange, root, schema, VALIDATION_RESULTS
- 
Constructor SummaryConstructorsConstructorDescriptionComponentPropsDocumentModel(DesignAdapter editor, ComponentSelection details, PropertyType scope, JsonSchema schema) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidapplyUpdates(com.inductiveautomation.ignition.common.gson.JsonObject o) This gets called from the javascript bridge when properties of the selected component change.protected com.inductiveautomation.ignition.common.gson.JsonElementfindBindingsOnChildren(String parentPath) findPropConfig(NodeEditor editor) findPropConfig(String path) getBinding(String path) getScope()protected voidOverride to customize JSON "validator" strategy.booleanisKeyEditable(DocumentNode node) booleanisValueEditable(DocumentNode node) protected voidonNodeChanged(PropertyChangeEvent event) Whenever any document node fires a property change, this method will be invoked.Methods inherited from class com.inductiveautomation.ignition.client.jsonedit.DocumentModeladdNodeChangeListener, addPropertyChangeListener, addPropertyChangeListener, addValidator, dfs, fromDocument, fromGson, getAsJsonTree, getRoot, getSchema, getValidationResults, removeNodeChangeListener, removePropertyChangeListener, removePropertyChangeListener, toJson
- 
Field Details- 
scope
 
- 
- 
Constructor Details- 
ComponentPropsDocumentModelpublic ComponentPropsDocumentModel(DesignAdapter editor, ComponentSelection details, PropertyType scope, JsonSchema schema) 
 
- 
- 
Method Details- 
encodeValueAsJsonprotected com.inductiveautomation.ignition.common.gson.JsonElement encodeValueAsJson(DocumentNode node) - Overrides:
- encodeValueAsJsonin class- DocumentModel
 
- 
getSelection
- 
getScope
- 
initValidatorsprotected void initValidators()Description copied from class:DocumentModelOverride to customize JSON "validator" strategy. Default behavior adds a schema validator, if a schema exists, and warns about duplicate or bad quality keys.- Overrides:
- initValidatorsin class- DocumentModel
 
- 
applyUpdatespublic void applyUpdates(com.inductiveautomation.ignition.common.gson.JsonObject o) This gets called from the javascript bridge when properties of the selected component change.
- 
getBinding
- 
findPropConfig
- 
getPropertyConfigCollection
- 
findPropConfig
- 
findBindingsOnChildren
- 
isKeyEditable- Overrides:
- isKeyEditablein class- DocumentModel
 
- 
isValueEditable- Overrides:
- isValueEditablein class- DocumentModel
 
- 
onNodeChangedWhenever any document node fires a property change, this method will be invoked. This is how the component props document model reflects changes made by the user back into the javascript PropertyTree- Overrides:
- onNodeChangedin class- DocumentModel
 
 
-