Class ComponentPropsDocumentModel


  • public class ComponentPropsDocumentModel
    extends DocumentModel
    Document model that knows how to write values back to the underlying property tree
    • Method Detail

      • initValidators

        protected void initValidators()
        Description copied from class: DocumentModel
        Override to customize JSON "validator" strategy. Default behavior adds a schema validator, if a schema exists, and warns about duplicate or bad quality keys.
        Overrides:
        initValidators in class DocumentModel
      • applyUpdates

        public 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)
      • findPropConfig

        public java.util.Optional<PropertyConfig> findPropConfig​(java.lang.String path)
      • findBindingsOnChildren

        public java.util.Set<BindingConfig> findBindingsOnChildren​(java.lang.String parentPath)
      • onNodeChanged

        protected 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:
        onNodeChanged in class DocumentModel