|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object chrriis.dj.nativeswing.swtimpl.WebBrowserObject
public abstract class WebBrowserObject
A helper class to simplify the development of native components that leverage a web browser plugin (like the JFlashPlayer).
Nested Class Summary | |
---|---|
static class |
WebBrowserObject.ObjectHTMLConfiguration
|
Constructor Summary | |
---|---|
WebBrowserObject(JWebBrowser webBrowser)
|
Method Summary | |
---|---|
protected void |
finalize()
|
protected String |
getAdditionalHeadDefinitions()
|
static String |
getEmbeddedObjectJavascriptName()
|
protected String |
getJavascriptDefinitions()
|
String |
getLoadedResource()
|
String |
getLocalFileURL(File localFile)
|
protected abstract WebBrowserObject.ObjectHTMLConfiguration |
getObjectHtmlConfiguration()
|
Object |
getObjectProperty(String property)
|
protected static WebServer.WebServerContent |
getWebServerContent(WebServer.HTTPRequest httpRequest)
|
boolean |
hasContent()
|
void |
invokeObjectFunction(String functionName,
Object... args)
Invoke a function on the object, with optional arguments (Strings, numbers, booleans, or array). |
Object |
invokeObjectFunctionWithResult(String functionName,
Object... args)
Invoke a function on the object and waits for a result, with optional arguments (Strings, numbers, booleans, or array). |
void |
load(String resourcePath)
|
void |
setBackground(Color background)
Set the background color of the object, which by default is the color of the native component. |
void |
setObjectProperty(String property,
Object value)
Set the value of a property of the object (a String, number, boolean, or array). |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WebBrowserObject(JWebBrowser webBrowser)
Method Detail |
---|
public String getLoadedResource()
public boolean hasContent()
protected void finalize() throws Throwable
finalize
in class Object
Throwable
public void load(String resourcePath)
public String getLocalFileURL(File localFile)
public static String getEmbeddedObjectJavascriptName()
protected static WebServer.WebServerContent getWebServerContent(WebServer.HTTPRequest httpRequest)
protected abstract WebBrowserObject.ObjectHTMLConfiguration getObjectHtmlConfiguration()
protected String getJavascriptDefinitions()
protected String getAdditionalHeadDefinitions()
public void setObjectProperty(String property, Object value)
public Object getObjectProperty(String property)
public void invokeObjectFunction(String functionName, Object... args)
public Object invokeObjectFunctionWithResult(String functionName, Object... args)
public void setBackground(Color background)
background
- The background to set.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |