Interface View
- All Superinterfaces:
AuditingContext
,LoggingContext
,PerspectiveElement
,PropertyTreeOwner
- All Known Implementing Classes:
DesignerViewModel
,ViewModel
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfindChildByIndexLocation
(String indexLocation) Tries to look up a component by its index location.findChildByPath
(String path) Tries to look up a component by its name path.getId()
getPage()
getPropertyConfig
(PropertyKey property) getView()
com.google.common.eventbus.EventBus
Deprecated.Methods inherited from interface com.inductiveautomation.perspective.gateway.api.AuditingContext
audit, getAuditSnapshot
Methods inherited from interface com.inductiveautomation.perspective.gateway.api.LoggingContext
getLogger, getMdcParent, mdc, mdcSetup, mdcSetupTree, mdcTeardown, mdcTeardownTree, mdcWrap
Methods inherited from interface com.inductiveautomation.perspective.gateway.api.PerspectiveElement
createPropertyReference, getAuditProfile, getName, getQualifiedPath, getSession, isRunning
Methods inherited from interface com.inductiveautomation.perspective.gateway.api.PropertyTreeOwner
getPropertyTreeOf
-
Field Details
-
MDC_VIEW
- See Also:
-
-
Method Details
-
getId
ViewInstanceId getId() -
getPage
- Specified by:
getPage
in interfacePerspectiveElement
- Returns:
- The Page that this element is part of. Will return null if this is the Session
-
getView
- Specified by:
getView
in interfacePerspectiveElement
- Returns:
- The view within which this element exists, or null if this is a Page or Session
-
getRootContainer
Component getRootContainer() -
getViewEventBus
Deprecated.Replaced bygetViewEventManager()
. Will be removed in 8.2.0 -
getViewEventManager
EventManager getViewEventManager() -
findChildByPath
Tries to look up a component by its name path. Some examples:- "/": returns the view
- "/root": returns the root container if the root container's name is "root"
- "/root/foo": returns a component called "foo" contained with in the root container called "root"
-
findChildByIndexLocation
Tries to look up a component by its index location. Some examples:- "": returns the view
- "0": returns the root container
- "0:4" returns a child of the root container at index 4
-
getPropertyConfig
-
getViewEventManager()
.