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
public class DesignerViewModel extends ViewModel
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 Summary
-
Fields inherited from class com.inductiveautomation.perspective.gateway.model.ViewModel
actions, bindings, changeScripts, config, id, inputParams, log, page, properties, rootContainer, VIEW
-
-
Constructor Summary
Constructors Constructor Description DesignerViewModel(PageModel session, ViewInstanceId id, ViewConfig config, com.inductiveautomation.ignition.common.gson.JsonObject input)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PropertyTreePermissionModel
createPermissionModel(PropertyType scope, PropertyConfigCollection config)
DesignerPropertyReference
createPropertyReference(java.lang.String referencePath, java.util.function.Consumer<PropertyTreeChangeEvent> subscriber, java.util.Set<Origin> acceptableOrigins)
Create aPropertyReference
with thisPerspectiveElement
as the target.protected void
initRoot(ComponentConfig rootConfig)
protected com.inductiveautomation.perspective.gateway.model.ActionCollection
newActionHandler(EventConfig config)
-
Methods inherited from class com.inductiveautomation.perspective.gateway.model.ViewModel
equals, findChildByIndexLocation, findChildByPath, getAuditSnapshot, getBirthDate, getConfig, getId, getLogger, getMdcParent, getName, getPage, getPropertyTreeOf, getQualifiedPath, getRootContainer, getSession, getView, getViewEventBus, getViewInfo, getViewState, hasAbandonedViewTimeout, hashCode, mdcSetup, mdcTeardown, onEventFired, onShutdown, onStartup, refreshBinding, restart, setAbandonedViewTimeout, setBirthDate, toString
-
Methods inherited from class com.inductiveautomation.ignition.common.lifecycle.AbstractLifecycle
isRunning, shutdown, startup
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.inductiveautomation.perspective.gateway.api.AuditingContext
audit
-
Methods inherited from interface com.inductiveautomation.perspective.gateway.api.LoggingContext
mdc, mdcSetupTree, mdcTeardownTree, mdcWrap
-
Methods inherited from interface com.inductiveautomation.perspective.gateway.api.PerspectiveElement
getAuditProfile
-
-
-
-
Constructor Detail
-
DesignerViewModel
public DesignerViewModel(PageModel session, ViewInstanceId id, ViewConfig config, com.inductiveautomation.ignition.common.gson.JsonObject input)
-
-
Method Detail
-
newActionHandler
protected com.inductiveautomation.perspective.gateway.model.ActionCollection newActionHandler(EventConfig config)
- Overrides:
newActionHandler
in classViewModel
-
createPermissionModel
protected PropertyTreePermissionModel createPermissionModel(PropertyType scope, PropertyConfigCollection config)
- Overrides:
createPermissionModel
in classViewModel
-
initRoot
protected void initRoot(ComponentConfig rootConfig)
-
createPropertyReference
@Nonnull public DesignerPropertyReference createPropertyReference(java.lang.String referencePath, java.util.function.Consumer<PropertyTreeChangeEvent> subscriber, java.util.Set<Origin> acceptableOrigins)
Description copied from interface:PerspectiveElement
Create aPropertyReference
with thisPerspectiveElement
as the target.- Specified by:
createPropertyReference
in interfacePerspectiveElement
- Overrides:
createPropertyReference
in classViewModel
- Parameters:
referencePath
- the path to the propertysubscriber
- the subscriber - aConsumer
ofPropertyTreeChangeEvent
sacceptableOrigins
- theSet
ofOrigin
s in which the subscriber is interested- Returns:
- the
PropertyReference
-
-