Class DesignerComponentModel
- java.lang.Object
- 
- com.inductiveautomation.ignition.common.lifecycle.AbstractLifecycle
- 
- com.inductiveautomation.perspective.gateway.model.ComponentModel
- 
- com.inductiveautomation.perspective.gateway.model.DesignerComponentModel
 
 
 
- 
- All Implemented Interfaces:
- AuditingContext,- Component,- LoggingContext,- PerspectiveElement,- PropertyTreeOwner
 
 public class DesignerComponentModel extends ComponentModel Backend instance of a component as it exists in a Designer, in order to allow special functionality not present in a typical running project (e.g., adding, removing components, etc).- Since:
- 8.0.0
 
- 
- 
Field Summary- 
Fields inherited from class com.inductiveautomation.perspective.gateway.model.ComponentModelactions, addressPath, addressPathString, bindings, changeScripts, config, customMethods, extensionFunctions, log, messageHandlers, parent, properties, view
 - 
Fields inherited from interface com.inductiveautomation.perspective.gateway.api.ComponentMDC_COMPONENT
 
- 
 - 
Constructor SummaryConstructors Constructor Description DesignerComponentModel(ViewModel view, ComponentConfig config, int[] addressPath, DesignerComponentModel parent)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidalterEvents(EventConfigChange change)voidalterPropConfig(PropertyConfigChange change)voidalterScripts(ScriptConfigChange change)protected java.util.List<ComponentModel>children()This method should always return a list containing all children, in the proper order.protected PropertyTreePermissionModelcreatePermissionModel(PropertyType scope, PropertyConfigCollection config)DesignerPropertyReferencecreatePropertyReference(java.lang.String referencePath, java.util.function.Consumer<PropertyTreeChangeEvent> subscriber, java.util.Set<Origin> acceptableOrigins)Create aPropertyReferencewith thisPerspectiveElementas the target.java.util.Optional<Component>getChild(int childId)protected voidinitChildren(java.util.List<ComponentConfig> configChildren)protected com.inductiveautomation.perspective.gateway.model.ActionCollectionnewActionHandler(EventConfig config)booleanremoveChild(int addressId)java.lang.StringtoString()- 
Methods inherited from class com.inductiveautomation.perspective.gateway.model.ComponentModeldispatch, findChildByName, findCustomMethod, findExtensionFunction, fireEvent, focus, getAuditSnapshot, getBindingCount, getChildren, getComponentAddressPath, getComponentState, getLogger, getMdcParent, getModelDelegate, getName, getParent, getPropertyConfig, getPropertyTreeOf, getQualifiedPath, getTraceId, getView, initProperties, mdcSetup, mdcTeardown, onShutdown, onStartup, refreshBinding, removeTooltip, requestTooltip, setName
 - 
Methods inherited from class com.inductiveautomation.ignition.common.lifecycle.AbstractLifecycleisRunning, shutdown, startup
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface com.inductiveautomation.perspective.gateway.api.AuditingContextaudit
 - 
Methods inherited from interface com.inductiveautomation.perspective.gateway.api.ComponentgetPage, getSession
 - 
Methods inherited from interface com.inductiveautomation.perspective.gateway.api.LoggingContextmdc, mdcSetupTree, mdcTeardownTree, mdcWrap
 - 
Methods inherited from interface com.inductiveautomation.perspective.gateway.api.PerspectiveElementgetAuditProfile, isRunning
 
- 
 
- 
- 
- 
Constructor Detail- 
DesignerComponentModelpublic DesignerComponentModel(ViewModel view, ComponentConfig config, int[] addressPath, DesignerComponentModel parent) 
 
- 
 - 
Method Detail- 
alterPropConfigpublic void alterPropConfig(PropertyConfigChange change) 
 - 
alterEventspublic void alterEvents(EventConfigChange change) 
 - 
alterScriptspublic void alterScripts(ScriptConfigChange change) 
 - 
newActionHandlerprotected com.inductiveautomation.perspective.gateway.model.ActionCollection newActionHandler(EventConfig config) - Overrides:
- newActionHandlerin class- ComponentModel
 
 - 
createPermissionModelprotected PropertyTreePermissionModel createPermissionModel(PropertyType scope, PropertyConfigCollection config) - Overrides:
- createPermissionModelin class- ComponentModel
 
 - 
removeChildpublic boolean removeChild(int addressId) 
 - 
initChildrenprotected void initChildren(java.util.List<ComponentConfig> configChildren) - Overrides:
- initChildrenin class- ComponentModel
 
 - 
children@Nonnull protected java.util.List<ComponentModel> children() Description copied from class:ComponentModelThis method should always return a list containing all children, in the proper order. Note that though all children are present and in the correct order, their index values may not be representative of their actual child ID (as is the case in the designer, where index and id diverge as changes are made to children).- Overrides:
- childrenin class- ComponentModel
- Returns:
- a list of child component models, which may be empty but will never be null.
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
getChildpublic java.util.Optional<Component> getChild(int childId) - Specified by:
- getChildin interface- Component
- Overrides:
- getChildin class- ComponentModel
 
 - 
createPropertyReference@Nonnull public DesignerPropertyReference createPropertyReference(java.lang.String referencePath, java.util.function.Consumer<PropertyTreeChangeEvent> subscriber, java.util.Set<Origin> acceptableOrigins) Description copied from interface:PerspectiveElementCreate aPropertyReferencewith thisPerspectiveElementas the target.- Specified by:
- createPropertyReferencein interface- PerspectiveElement
- Overrides:
- createPropertyReferencein class- ComponentModel
- Parameters:
- referencePath- the path to the property
- subscriber- the subscriber - a- Consumerof- PropertyTreeChangeEvents
- acceptableOrigins- the- Setof- Origins in which the subscriber is interested
- Returns:
- the PropertyReference
 
 
- 
 
-