Top Inners Fields Constructors Methods
org.eclipse.swt.browser

pack-priv abstract Class WebBrowser

extends Object
Class Inheritance
Known Direct Subclasses
org.eclipse.swt.browser.WebKit
Imports
java.util.*, .List, org.eclipse.swt.*, org.eclipse.swt.widgets.*

Nested and Inner Type Summary

Modifier and TypeClass and Description
public class

Field Summary

Modifier and TypeField and Description
pack-priv AuthenticationListener[]
pack-priv Browser
pack-priv CloseWindowListener[]
pack-priv static String
pack-priv static boolean
pack-priv static String
pack-priv static String
pack-priv static final String
pack-priv Object
pack-priv static final String
pack-priv Map<Integer, BrowserFunction>
pack-priv boolean
pack-priv boolean
pack-priv static final int[][]
pack-priv LocationListener[]
pack-priv static Runnable
pack-priv static Runnable
pack-priv static List<String[]>
pack-priv static Runnable
pack-priv int
pack-priv OpenWindowListener[]
pack-priv ProgressListener[]
pack-priv StatusTextListener[]
pack-priv TitleListener[]
pack-priv VisibilityWindowListener[]

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
public void
public void
public void
public void
public void
public void
public void
public abstract boolean
back()

public static void
public boolean
public abstract void
create(Composite parent, int style)

pack-priv static String
public void
pack-priv void
public void
public Object
evaluate(String script, boolean trusted)

public Object
evaluate(String script)

public abstract boolean
execute(String script)

pack-priv static String
public abstract boolean
public abstract String
public static String
GetCookie(String name, String url)

pack-priv String
pack-priv String

Returns:

javaScrit code that defines the 'callJava' syntax for javascript.
getJavaCallDeclaration
()

Designed to be overriden.

pack-priv int
public abstract String
public abstract String
public Object
public abstract boolean
public boolean
public abstract boolean
pack-priv void
public abstract void
pack-priv void
public void
public void
public void
public void
public void
public void
public void
public void
pack-priv boolean
public void
public static boolean
SetCookie(String value, String url, boolean addToPending)

pack-priv static void
SetPendingCookies(List<String[]> pendingCookies)

public abstract boolean
setText(String html, boolean trusted)

public abstract boolean
setUrl(String url, String postData, String[] headers)

public abstract void
stop()

pack-priv int
translateKey(int key)

pack-priv boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

authenticationListenersback to summary
pack-priv AuthenticationListener[] authenticationListeners
browserback to summary
pack-priv Browser browser
closeWindowListenersback to summary
pack-priv CloseWindowListener[] closeWindowListeners
CookieNameback to summary
pack-priv static String CookieName
CookieResultback to summary
pack-priv static boolean CookieResult
CookieUrlback to summary
pack-priv static String CookieUrl
CookieValueback to summary
pack-priv static String CookieValue
ERROR_IDback to summary
pack-priv static final String ERROR_ID
evaluateResultback to summary
pack-priv Object evaluateResult
EXECUTE_IDback to summary
pack-priv static final String EXECUTE_ID
functionsback to summary
pack-priv Map<Integer, BrowserFunction> functions
jsEnabledback to summary
pack-priv boolean jsEnabled
jsEnabledOnNextPageback to summary
pack-priv boolean jsEnabledOnNextPage
KeyTableback to summary
pack-priv static final int[][] KeyTable
locationListenersback to summary
pack-priv LocationListener[] locationListeners
NativeClearSessionsback to summary
pack-priv static Runnable NativeClearSessions
NativeGetCookieback to summary
pack-priv static Runnable NativeGetCookie
NativePendingCookiesback to summary
pack-priv static List<String[]> NativePendingCookies
NativeSetCookieback to summary
pack-priv static Runnable NativeSetCookie
nextFunctionIndexback to summary
pack-priv int nextFunctionIndex
openWindowListenersback to summary
pack-priv OpenWindowListener[] openWindowListeners
progressListenersback to summary
pack-priv ProgressListener[] progressListeners
statusTextListenersback to summary
pack-priv StatusTextListener[] statusTextListeners
titleListenersback to summary
pack-priv TitleListener[] titleListeners
visibilityWindowListenersback to summary
pack-priv VisibilityWindowListener[] visibilityWindowListeners

Constructor Detail

WebBrowserback to summary
pack-priv WebBrowser()

Method Detail

addAuthenticationListenerback to summary
public void addAuthenticationListener(AuthenticationListener listener)
addCloseWindowListenerback to summary
public void addCloseWindowListener(CloseWindowListener listener)
addLocationListenerback to summary
public void addLocationListener(LocationListener listener)
addOpenWindowListenerback to summary
public void addOpenWindowListener(OpenWindowListener listener)
addProgressListenerback to summary
public void addProgressListener(ProgressListener listener)
addStatusTextListenerback to summary
public void addStatusTextListener(StatusTextListener listener)
addTitleListenerback to summary
public void addTitleListener(TitleListener listener)
addVisibilityWindowListenerback to summary
public void addVisibilityWindowListener(VisibilityWindowListener listener)
backback to summary
public abstract boolean back()
clearSessionsback to summary
public static void clearSessions()
closeback to summary
public boolean close()
createback to summary
public abstract void create(Composite parent, int style)
CreateErrorStringback to summary
pack-priv static String CreateErrorString(String error)
createFunctionback to summary
public void createFunction(BrowserFunction function)
deregisterFunctionback to summary
pack-priv void deregisterFunction(BrowserFunction function)
destroyFunctionback to summary
public void destroyFunction(BrowserFunction function)
evaluateback to summary
public Object evaluate(String script, boolean trusted) throws SWTException
evaluateback to summary
public Object evaluate(String script) throws SWTException
executeback to summary
public abstract boolean execute(String script)
ExtractErrorback to summary
pack-priv static String ExtractError(String error)
forwardback to summary
public abstract boolean forward()
getBrowserTypeback to summary
public abstract String getBrowserType()
GetCookieback to summary
public static String GetCookie(String name, String url)
getDeleteFunctionStringback to summary
pack-priv String getDeleteFunctionString(String functionName)
getJavaCallDeclarationback to summary
pack-priv String getJavaCallDeclaration()

Designed to be overriden.

Returns:String

javaScrit code that defines the 'callJava' syntax for javascript.

getNextFunctionIndexback to summary
pack-priv int getNextFunctionIndex()
getTextback to summary
public abstract String getText()
getUrlback to summary
public abstract String getUrl()
getWebBrowserback to summary
public Object getWebBrowser()
isBackEnabledback to summary
public abstract boolean isBackEnabled()
isFocusControlback to summary
public boolean isFocusControl()
isForwardEnabledback to summary
public abstract boolean isForwardEnabled()
nonBlockingExecuteback to summary
pack-priv void nonBlockingExecute(String script)
refreshback to summary
public abstract void refresh()
registerFunctionback to summary
pack-priv void registerFunction(BrowserFunction function)
removeAuthenticationListenerback to summary
public void removeAuthenticationListener(AuthenticationListener listener)
removeCloseWindowListenerback to summary
public void removeCloseWindowListener(CloseWindowListener listener)
removeLocationListenerback to summary
public void removeLocationListener(LocationListener listener)
removeOpenWindowListenerback to summary
public void removeOpenWindowListener(OpenWindowListener listener)
removeProgressListenerback to summary
public void removeProgressListener(ProgressListener listener)
removeStatusTextListenerback to summary
public void removeStatusTextListener(StatusTextListener listener)
removeTitleListenerback to summary
public void removeTitleListener(TitleListener listener)
removeVisibilityWindowListenerback to summary
public void removeVisibilityWindowListener(VisibilityWindowListener listener)
sendKeyEventback to summary
pack-priv boolean sendKeyEvent(Event event)
setBrowserback to summary
public void setBrowser(Browser browser)
SetCookieback to summary
public static boolean SetCookie(String value, String url, boolean addToPending)
SetPendingCookiesback to summary
pack-priv static void SetPendingCookies(List<String[]> pendingCookies)
setTextback to summary
public abstract boolean setText(String html, boolean trusted)
setUrlback to summary
public abstract boolean setUrl(String url, String postData, String[] headers)
stopback to summary
public abstract void stop()
translateKeyback to summary
pack-priv int translateKey(int key)
translateMnemonicsback to summary
pack-priv boolean translateMnemonics()
org.eclipse.swt.browser back to summary

public Class WebBrowser.EvaluateFunction

extends BrowserFunction
Class Inheritance

Field Summary

Inherited from org.eclipse.swt.browser.BrowserFunction:
browserframeNamesfunctionStringindexisEvaluatenametokentop

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object
function(Object[]
the javascript arguments converted to java equivalents
arguments
)

Overrides org.eclipse.swt.browser.BrowserFunction.function.

Subclasses should override this method.
Inherited from org.eclipse.swt.browser.BrowserFunction:
disposedisposegetBrowsergetNameisDisposed

Constructor Detail

EvaluateFunctionback to summary
public EvaluateFunction(Browser browser, String name)

Method Detail

functionback to summary
public Object function(Object[] arguments)

Overrides org.eclipse.swt.browser.BrowserFunction.function.

Doc from org.eclipse.swt.browser.BrowserFunction.function.

Subclasses should override this method. This method is invoked when the receiver's function is called from javascript. If all of the arguments that are passed to the javascript function call are of supported types then this method is invoked with the argument values converted as follows: javascript null or undefined -> null javascript number -> java.lang.Double javascript string -> java.lang.String javascript boolean -> java.lang.Boolean javascript array whose elements are all of supported types -> java.lang.Object[] If any of the javascript arguments are of unsupported types then the function invocation will fail and this method will not be called. This method must return a value with one of these supported java types to the javascript caller. Note that null values are converted to javascript's null value (not undefined), and instances of any java.lang.Number subclass will be converted to a javascript number.

Parameters
arguments:Object[]

the javascript arguments converted to java equivalents

Returns:Object

the value to return to the javascript caller

Annotations
@Override