Class ComponentModelScriptWrapper.SafetyWrapper

  • All Implemented Interfaces:
    PropertyTreeOwner
    Enclosing class:
    ComponentModelScriptWrapper

    public static class ComponentModelScriptWrapper.SafetyWrapper
    extends java.lang.Object
    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.

    • Method Detail

      • getChildren

        public java.util.Collection<Component> getChildren()
      • refreshBinding

        public boolean refreshBinding​(java.lang.String propertyStr)
                               throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • focus

        public void focus()
      • getParent

        @Nullable
        public Component getParent()
      • print

        public void print​(java.lang.String message)
      • getView

        public View getView()
      • getSession

        public Session getSession()
      • getPage

        public Page getPage()
      • getName

        public java.lang.String getName()