Class ViewModelScriptWrapper.SafetyWrapper
java.lang.Object
com.inductiveautomation.perspective.gateway.script.ViewModelScriptWrapper.SafetyWrapper
- All Implemented Interfaces:
PropertyTreeOwner
- Enclosing class:
- ViewModelScriptWrapper
Delegates to the actual view, this prevents the scripting system from being able to call everything
on ViewModel, like startup(), shutdown, etc.
Also gives us a good place to implement methods that make sense for script authors, that don't belong on the the model object, like more user friendly versions of getChild
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()
getName()
getPage()
getPropertyTreeOf
(PropertyType propertyType) Fetch thePropertyTree
associated with the givenPropertyType
getView()
void
boolean
refreshBinding
(String propertyStr)
-
Field Details
-
element
-
-
Constructor Details
-
SafetyWrapper
-
-
Method Details
-
getChild
-
getRootContainer
-
getId
-
refreshBinding
- Throws:
Throwable
-
getPropertyTreeOf
Description copied from interface:PropertyTreeOwner
Fetch thePropertyTree
associated with the givenPropertyType
- Specified by:
getPropertyTreeOf
in interfacePropertyTreeOwner
- Parameters:
propertyType
- ThePropertyType
of thePropertyTree
we want to fetch- Returns:
- The PropertyTree or null if this PropertyTreeOwner does not manage a PropertyTree for the given PropertyType or if a null PropertyType is given
-
print
-
getView
-
getSession
-
getPage
-
getName
-