Class ComponentPropsDocumentModel
- java.lang.Object
- 
- com.inductiveautomation.ignition.client.jsonedit.DocumentModel
- 
- com.inductiveautomation.perspective.designer.workspace.propertyeditor.ComponentPropsDocumentModel
 
 
- 
 public class ComponentPropsDocumentModel extends DocumentModel Document model that knows how to write values back to the underlying property tree
- 
- 
Field SummaryFields Modifier and Type Field Description PropertyTypescope- 
Fields inherited from class com.inductiveautomation.ignition.client.jsonedit.DocumentModelchange, root, schema, VALIDATION_RESULTS
 
- 
 - 
Constructor SummaryConstructors Constructor Description ComponentPropsDocumentModel(DesignAdapter editor, ComponentSelection details, PropertyType scope, JsonSchema schema)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyUpdates(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.JsonElementencodeValueAsJson(DocumentNode node)java.util.Set<BindingConfig>findBindingsOnChildren(java.lang.String parentPath)java.util.Optional<PropertyConfig>findPropConfig(NodeEditor editor)java.util.Optional<PropertyConfig>findPropConfig(java.lang.String path)BindingConfiggetBinding(java.lang.String path)PropertyConfigCollectiongetPropertyConfigCollection()PropertyTypegetScope()ComponentSelectiongetSelection()protected voidinitValidators()Override to customize JSON "validator" strategy.booleanisKeyEditable(DocumentNode node)booleanisValueEditable(DocumentNode node)protected voidonNodeChanged(java.beans.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 Detail- 
scopepublic final PropertyType scope 
 
- 
 - 
Constructor Detail- 
ComponentPropsDocumentModelpublic ComponentPropsDocumentModel(DesignAdapter editor, ComponentSelection details, PropertyType scope, JsonSchema schema) 
 
- 
 - 
Method Detail- 
encodeValueAsJsonprotected com.inductiveautomation.ignition.common.gson.JsonElement encodeValueAsJson(DocumentNode node) - Overrides:
- encodeValueAsJsonin class- DocumentModel
 
 - 
getSelectionpublic ComponentSelection getSelection() 
 - 
getScopepublic PropertyType 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@Nullable public BindingConfig getBinding(java.lang.String path) 
 - 
findPropConfigpublic java.util.Optional<PropertyConfig> findPropConfig(NodeEditor editor) 
 - 
getPropertyConfigCollectionpublic PropertyConfigCollection getPropertyConfigCollection() 
 - 
findPropConfigpublic java.util.Optional<PropertyConfig> findPropConfig(java.lang.String path) 
 - 
findBindingsOnChildrenpublic java.util.Set<BindingConfig> findBindingsOnChildren(java.lang.String parentPath) 
 - 
isKeyEditablepublic boolean isKeyEditable(DocumentNode node) - Overrides:
- isKeyEditablein class- DocumentModel
 
 - 
isValueEditablepublic boolean isValueEditable(DocumentNode node) - Overrides:
- isValueEditablein class- DocumentModel
 
 - 
onNodeChangedprotected void onNodeChanged(java.beans.PropertyChangeEvent event) Whenever 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
 
 
- 
 
-