org.apache.pivot.wtk
Class BrowserApplicationContext
java.lang.Object
org.apache.pivot.wtk.ApplicationContext
org.apache.pivot.wtk.BrowserApplicationContext
public final class BrowserApplicationContext
- extends ApplicationContext
Application context used to execute applications in a web browser.
Methods inherited from class org.apache.pivot.wtk.ApplicationContext |
addApplication, addDisplay, createTimer, destroyTimer, getApplication, getDisplay, getDisplayHost, getJVMVersion, getOrigin, getResourceCache, invalidateDisplays, queueCallback, queueCallback, queueMessage, removeApplication, removeDisplay, scheduleCallback, scheduleRecurringCallback, scheduleRecurringCallback, sendMessage, setApplication, subscribe, unsubscribe |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BrowserApplicationContext
public BrowserApplicationContext()
getApplication
public static Application getApplication(String name)
- Retrieves a named application.
- Parameters:
name
- The name of the applet hosting the application.
eval
public static Object eval(String script,
Application application)
- Evaluates a script in the page context and returns the result.
- Parameters:
script
- application
-