Class DesignerViewModel
java.lang.Object
com.inductiveautomation.ignition.common.lifecycle.AbstractLifecycle
com.inductiveautomation.perspective.gateway.model.ViewModel
com.inductiveautomation.perspective.gateway.model.DesignerViewModel
- All Implemented Interfaces:
- AuditingContext,- LoggingContext,- PerspectiveElement,- PropertyTreeOwner,- View
Represents the base of a running view on the gateway. Each view visible in a connected client will have
 an instance of this class on the backend that computes its property values and executes its actions.
- 
Field SummaryFields inherited from class com.inductiveautomation.perspective.gateway.model.ViewModelactions, bindings, changeScripts, config, dependencyGraph, id, inputParams, log, page, properties, rootContainer, VIEW
- 
Constructor SummaryConstructorsConstructorDescriptionDesignerViewModel(PageModel session, ViewInstanceId id, ViewConfig config, com.inductiveautomation.ignition.common.gson.JsonObject input) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected PropertyTreePermissionModelcreatePermissionModel(PropertyType scope, PropertyConfigCollection config) createPropertyReference(String referencePath, Consumer<PropertyTreeChangeEvent> subscriber, Set<Origin> acceptableOrigins) Create aPropertyReferencewith thisPerspectiveElementas the target.protected voidinitRoot(ComponentConfig rootConfig) protected com.inductiveautomation.perspective.gateway.model.ActionCollectionnewActionHandler(EventConfig config) Methods inherited from class com.inductiveautomation.perspective.gateway.model.ViewModelequals, findChildByIndexLocation, findChildByPath, getAuditSnapshot, getBindingCount, getBirthDate, getComponentCount, getConfig, getId, getLogger, getMdcParent, getName, getPage, getPropertyConfig, getPropertyTreeOf, getQualifiedPath, getRootContainer, getSession, getView, getViewEventBus, getViewEventManager, getViewInfo, getViewState, hasAbandonedViewTimeout, hashCode, mdcSetup, mdcTeardown, onEventFired, onShutdown, onStartup, refreshBinding, resolveReferences, restart, setAbandonedViewTimeout, setBirthDate, toStringMethods inherited from class com.inductiveautomation.ignition.common.lifecycle.AbstractLifecycleisRunning, shutdown, startupMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.inductiveautomation.perspective.gateway.api.AuditingContextauditMethods inherited from interface com.inductiveautomation.perspective.gateway.api.LoggingContextmdc, mdcSetupTree, mdcTeardownTree, mdcWrapMethods inherited from interface com.inductiveautomation.perspective.gateway.api.PerspectiveElementgetAuditProfile, isRunning
- 
Constructor Details- 
DesignerViewModelpublic DesignerViewModel(PageModel session, ViewInstanceId id, ViewConfig config, com.inductiveautomation.ignition.common.gson.JsonObject input) 
 
- 
- 
Method Details- 
newActionHandlerprotected com.inductiveautomation.perspective.gateway.model.ActionCollection newActionHandler(EventConfig config) - Overrides:
- newActionHandlerin class- ViewModel
 
- 
createPermissionModelprotected PropertyTreePermissionModel createPermissionModel(PropertyType scope, PropertyConfigCollection config) - Overrides:
- createPermissionModelin class- ViewModel
 
- 
initRoot
- 
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 interface- PerspectiveElement
- Overrides:
- createPropertyReferencein class- ViewModel
- 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
 
 
-