public interface IWebBrowserACTF extends IModelService
Document
.
This interface extends IModelService
to enable to control Web
Browser.
Users can get this IModelService
through IModelServiceHolder
that is implemented with IEditorPart
.IModelService
,
IModelServiceHolder
Modifier and Type | Interface and Description |
---|---|
static class |
IWebBrowserACTF.WebBrowserNavigationEventListnerHolder
To set
IWebBrowserACTFEventListener to override
DefaultWebBrowserNavigationEventListener |
Modifier and Type | Field and Description |
---|---|
static int |
READYSTATE_COMPLETE |
static int |
READYSTATE_INTERACTIVE |
static int |
READYSTATE_LOADED |
static int |
READYSTATE_LOADING |
static int |
READYSTATE_UNINITIALIZED |
ATTR_WINDOWHANDLE, EXTS_HTML, EXTS_ODF, MIMETYPES_HTML, MIMETYPES_ODF
Modifier and Type | Method and Description |
---|---|
void |
clearHighlight()
Clear highlight
|
boolean |
clearInterval(int id)
Cancels setInterval
|
boolean |
clearTimeout(int id)
Cancels setTimeout
|
int |
getBrowserAddress()
Get native pointer of the browser.
|
int |
getFontSize()
Get font size
|
String |
getLocationName()
Get current location name
|
int |
getNavigateErrorCode()
Get navigation error code
|
int |
getReadyState()
Get ready state of the browser
|
IWebBrowserStyleInfo |
getStyleInfo()
Get current style information of the browser
|
void |
goBackward()
Navigate to a backward page
|
void |
goForward()
Navigate to a forward page
|
void |
highlightElementById(String id)
Highlight element that has specified ID
|
void |
hightlightElementByAttribute(String name,
String value)
Highlight elements that have specified attribute/value set
|
boolean |
isDisableScriptDebugger()
Check whether the script debugger is disabled
|
boolean |
isReady()
Check whether the browser is ready
|
boolean |
isUrlExists()
Check whether the navigated URL exists
|
void |
navigate(String url)
Navigate to URL
|
void |
navigateRefresh()
Refresh
|
void |
navigateStop()
Stop navigation
|
void |
setDisableScriptDebugger(boolean bDisable)
Disable script debugger
|
void |
setFocusAddressText(boolean selectAll)
Focus address text area
|
void |
setFontSize(int fontSize)
Set font size
|
int |
setInterval(String script,
int interval)
Evaluates a script each time a specified interval (msec) has elapsed.
|
int |
setTimeout(String script,
int interval)
Evaluates a script after a specified interval (msec) has elapsed.
|
void |
setWebBrowserSilent(boolean bSilent)
Set silent property
|
void |
showAddressText(boolean flag)
Show/hide address text area
|
getAllImagePosition, getAttribute, getCurrentMIMEType, getDocument, getID, getLiveDocument, getModelServiceHolder, getScrollManager, getSupportExtensions, getSupportMIMETypes, getTargetComposite, getTitle, getURL, jumpToNode, open, open, saveDocumentAsHTMLFile, saveOriginalDocument
static final int READYSTATE_UNINITIALIZED
static final int READYSTATE_LOADING
static final int READYSTATE_LOADED
static final int READYSTATE_INTERACTIVE
static final int READYSTATE_COMPLETE
void setFocusAddressText(boolean selectAll)
selectAll
- if true, select all text in the address text areavoid showAddressText(boolean flag)
flag
- true to show address text areavoid navigate(String url)
url
- target URLvoid goBackward()
void goForward()
void navigateStop()
void navigateRefresh()
int getReadyState()
boolean isReady()
String getLocationName()
boolean isUrlExists()
int getNavigateErrorCode()
void setWebBrowserSilent(boolean bSilent)
bSilent
- silent propertyvoid setDisableScriptDebugger(boolean bDisable)
bDisable
- true to disable script debuggerboolean isDisableScriptDebugger()
void highlightElementById(String id)
id
- target IDvoid hightlightElementByAttribute(String name, String value)
name
- target attribute namevalue
- target attribute valuevoid clearHighlight()
void setFontSize(int fontSize)
fontSize
- font sizeint getFontSize()
IWebBrowserStyleInfo getStyleInfo()
IWebBrowserStyleInfo
int getBrowserAddress()
int setTimeout(String script, int interval)
script
- target scriptinterval
- interval (msec)boolean clearTimeout(int id)
id
- id of target timerint setInterval(String script, int interval)
script
- target scriptinterval
- interval (msec)boolean clearInterval(int id)
id
- id of target timer