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
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.ComponentModel
actions, addressPath, addressPathString, bindings, changeScripts, config, customMethods, extensionFunctions, log, messageHandlers, parent, properties, viewFields inherited from interface com.inductiveautomation.perspective.gateway.api.Component
MDC_COMPONENT -
Constructor Summary
ConstructorsConstructorDescriptionDesignerComponentModel(ViewModel view, ComponentConfig config, int[] addressPath, DesignerComponentModel parent) -
Method Summary
Modifier and TypeMethodDescriptionvoidalterEvents(EventConfigChange change) voidalterPropConfig(PropertyConfigChange change) voidalterScripts(ScriptConfigChange change) protected List<ComponentModel>children()This method should always return a list containing all children, in the proper order.protected PropertyTreePermissionModelcreatePermissionModel(PropertyType scope, PropertyConfigCollection config) createPropertyReference(String referencePath, Consumer<PropertyTreeChangeEvent> subscriber, Set<Origin> acceptableOrigins) Create aPropertyReferencewith thisPerspectiveElementas the target.getChild(int childId) protected voidinitChildren(List<ComponentConfig> configChildren) protected com.inductiveautomation.perspective.gateway.model.ActionCollectionnewActionHandler(EventConfig config) booleanremoveChild(int addressId) toString()Methods inherited from class com.inductiveautomation.perspective.gateway.model.ComponentModel
dispatch, findChildByName, findCustomMethod, findExtensionFunction, fireEvent, focus, getAuditSnapshot, getBindingCount, getChildren, getComponentAddressPath, getComponentState, getLogger, getMdcParent, getModelDelegate, getName, getParent, getPropertyConfig, getPropertyTreeOf, getQualifiedPath, getTraceId, getType, getView, initProperties, mdcSetup, mdcTeardown, onShutdown, onStartup, refreshBinding, removeContextMenu, removeTooltip, requestContextMenu, requestPrint, requestTooltip, setNameMethods inherited from class com.inductiveautomation.ignition.common.lifecycle.AbstractLifecycle
isRunning, shutdown, startupMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.inductiveautomation.perspective.gateway.api.AuditingContext
auditMethods inherited from interface com.inductiveautomation.perspective.gateway.api.Component
getPage, getSessionMethods inherited from interface com.inductiveautomation.perspective.gateway.api.LoggingContext
mdc, mdcSetupTree, mdcTeardownTree, mdcWrapMethods inherited from interface com.inductiveautomation.perspective.gateway.api.PerspectiveElement
getAuditProfile, isRunning
-
Constructor Details
-
DesignerComponentModel
public DesignerComponentModel(ViewModel view, ComponentConfig config, int[] addressPath, DesignerComponentModel parent)
-
-
Method Details
-
alterPropConfig
-
alterEvents
-
alterScripts
-
newActionHandler
protected com.inductiveautomation.perspective.gateway.model.ActionCollection newActionHandler(EventConfig config) - Overrides:
newActionHandlerin classComponentModel
-
createPermissionModel
protected PropertyTreePermissionModel createPermissionModel(PropertyType scope, PropertyConfigCollection config) - Overrides:
createPermissionModelin classComponentModel
-
removeChild
public boolean removeChild(int addressId) -
initChildren
- Overrides:
initChildrenin classComponentModel
-
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 classComponentModel- Returns:
- a list of child component models, which may be empty but will never be null.
-
toString
-
getChild
- Specified by:
getChildin interfaceComponent- Overrides:
getChildin classComponentModel
-
createPropertyReference
@Nonnull public DesignerPropertyReference createPropertyReference(String referencePath, Consumer<PropertyTreeChangeEvent> subscriber, Set<Origin> acceptableOrigins) Description copied from interface:PerspectiveElementCreate aPropertyReferencewith thisPerspectiveElementas the target.- Specified by:
createPropertyReferencein interfacePerspectiveElement- Overrides:
createPropertyReferencein classComponentModel- Parameters:
referencePath- the path to the propertysubscriber- the subscriber - aConsumerofPropertyTreeChangeEventsacceptableOrigins- theSetofOrigins in which the subscriber is interested- Returns:
- the
PropertyReference
-