Class BrowserApplicationContext

    • Constructor Detail

      • BrowserApplicationContext

        public BrowserApplicationContext()
    • Method Detail

      • isActive

        public static boolean isActive()
      • getApplication

        public static Application getApplication​(java.lang.String name)
        Retrieves a named application.
        Parameters:
        name - The name of the applet hosting the application.
        Returns:
        The application being run in the given applet (if any).
        Throws:
        java.lang.IllegalArgumentException - if the name is null.
      • eval

        public static java.lang.Object eval​(java.lang.String script,
                                            Application application)
        Evaluates a script in the page context and returns the result.
        Parameters:
        script - The script to be run.
        application - The application used to find the correct applet.
        Returns:
        The result of the script evaluation.