Class ComponentModelScriptWrapper.SafetyWrapper
java.lang.Object
com.inductiveautomation.perspective.gateway.script.ComponentModelScriptWrapper.SafetyWrapper
- All Implemented Interfaces:
PropertyTreeOwner
- Enclosing class:
- ComponentModelScriptWrapper
Delegates to the actual component, this prevents the scripting system from being able to call everything
on ComponentModel, 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, findSibling, etc.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
focus()
getName()
getPage()
getPropertyTreeOf
(PropertyType propertyType) Fetch thePropertyTree
associated with the givenPropertyType
getSibling
(String name) getView()
void
boolean
refreshBinding
(String propertyStr) void
void
void
void
requestPrint
(org.python.core.PyObject[] pyArgs, String[] keywords) void
-
Field Details
-
element
-
-
Method Details
-
getChild
-
getSibling
-
getChildren
-
refreshBinding
- Throws:
Throwable
-
focus
public void focus() -
requestTooltip
public void requestTooltip() -
removeTooltip
public void removeTooltip() -
requestContextMenu
public void requestContextMenu() -
removeContextMenu
public void removeContextMenu() -
requestPrint
-
getParent
-
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
-