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()@NonNull PagegetPage()getPropertyConfig(PropertyKey property) @NonNull ViewgetView()Methods inherited from interface AuditingContext
audit, getAuditSnapshotMethods inherited from interface LoggingContext
getLogger, getMdcParent, mdc, mdcSetup, mdcSetupTree, mdcTeardown, mdcTeardownTree, mdcWrapMethods inherited from interface PerspectiveElement
createPropertyReference, getAuditProfile, getName, getQualifiedPath, getSession, isRunningMethods inherited from interface PropertyTreeOwner
getPropertyTreeOf
-
Field Details
-
MDC_VIEW
- See Also:
-
-
Method Details
-
getId
ViewInstanceId getId() -
getPage
@NonNull Page getPage()- Specified by:
getPagein interfacePerspectiveElement- Returns:
- The Page that this element is part of. Will return null if this is the Session
-
getView
@NonNull View getView()- Specified by:
getViewin interfacePerspectiveElement- Returns:
- The view within which this element exists, or null if this is a Page or Session
-
getRootContainer
Component getRootContainer() -
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
-