|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IWebBrowserACTF
Interface to provide access to model of the Web content as 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
Nested Class Summary | |
---|---|
static class |
IWebBrowserACTF.WebBrowserNavigationEventListnerHolder
To set IWebBrowserACTFEventListener to override
DefaultWebBrowserNavigationEventListener |
Field Summary | |
---|---|
static int |
READYSTATE_COMPLETE
|
static int |
READYSTATE_INTERACTIVE
|
static int |
READYSTATE_LOADED
|
static int |
READYSTATE_LOADING
|
static int |
READYSTATE_UNINITIALIZED
|
Fields inherited from interface org.eclipse.actf.model.ui.IModelService |
---|
ATTR_WINDOWHANDLE, EXTS_HTML, EXTS_ODF, MIMETYPES_HTML, MIMETYPES_ODF |
Method Summary | |
---|---|
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 |
Methods inherited from interface org.eclipse.actf.model.ui.IModelService |
---|
getAllImagePosition, getAttribute, getCurrentMIMEType, getDocument, getID, getLiveDocument, getModelServiceHolder, getScrollManager, getSupportExtensions, getSupportMIMETypes, getTargetComposite, getTitle, getURL, jumpToNode, open, open, saveDocumentAsHTMLFile, saveOriginalDocument |
Field Detail |
---|
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
Method Detail |
---|
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 timer
int setInterval(String script, int interval)
script
- target scriptinterval
- interval (msec)
boolean clearInterval(int id)
id
- id of target timer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |