|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IMozillaBrowserCanvas
IMozillaBrowserCanvas
provides Mozilla specific extensions to the
standard IBrowserCanvas
interface. This functionality can be
accessed by casting a standard IBrowserCanvas
interface, but only
if Mozilla is the currently used browser. For example:
if ( browser.getBrowserType().equals("MOZILLA") ) {
( (IMozillaBrowserCanvas) browser ).saveToFile( "filename.html" );
}
Field Summary | |
---|---|
static int |
COOKIE_ACCEPT_ALL
This flag inidicates to setCookieMode that all cookies will
be accepted by Mozilla. |
static int |
COOKIE_ACCEPT_FROM_ORIGINATING_SERVER
This flag inidicates to setCookieMode that only cookies
that have requested by the originating server will be accepted. |
static int |
COOKIE_ACCEPT_NONE
This flag inidicates to setCookieMode that all cookies will
be discarded by Mozilla. |
Fields inherited from interface com.webrenderer.se.IBrowserCanvas |
---|
IMAGE_FORMAT_JPEG, IMAGE_FORMAT_PNG, KEY_CODE_BACKSPACE, KEY_CODE_DELETE, KEY_CODE_TAB, KEY_MODIFIER_CTRL_DOWN, KEY_MODIFIER_SHIFT_DOWN, RELOAD_BYPASS_CACHE, RELOAD_BYPASS_PROXY, RELOAD_BYPASS_PROXY_AND_CACHE, RELOAD_NORMAL |
Method Summary | |
---|---|
boolean |
findInPage(java.lang.String toFind,
boolean matchCase,
boolean wrap,
boolean backwards)
The given string will be found and highlighted in the document if it exists Set matchCase if it is a case sensitive search Set wrap if you want the search to continue searching from top when it hits the bottom Set bacwards if you want the search to go backwards throught the page |
int |
getCookieMode()
Get the current cookie accept mode. |
java.lang.String |
getMozillaVersion()
Returns the current version of mozilla from corecomponents |
void |
registerProtocol(java.lang.String protocol,
ProtocolListener l)
Registers a protocol to Mozilla. |
void |
saveToFile(java.lang.String filename)
Save the current HTML page to a local file. |
void |
setCookieMode(int mode)
Set the mode for accepting cookies. |
void |
setProxyAuthentication(java.lang.String username,
java.lang.String password)
Set Proxy Authentication. |
Field Detail |
---|
static final int COOKIE_ACCEPT_ALL
setCookieMode
that all cookies will
be accepted by Mozilla. setCookieMode(COOKIE_ACCEPT_ALL)
is
the same as using IBrowserCanvas.enableCookies()
.
setCookieMode(int)
,
Constant Field Valuesstatic final int COOKIE_ACCEPT_FROM_ORIGINATING_SERVER
setCookieMode
that only cookies
that have requested by the originating server will be accepted. The
functionality provided by this is currently only found in Mozilla.
setCookieMode(int)
,
Constant Field Valuesstatic final int COOKIE_ACCEPT_NONE
setCookieMode
that all cookies will
be discarded by Mozilla. setCookieMode(COOKIE_ACCEPT_NONE)
is the same as using IBrowserCanvas.disableCookies()
.
setCookieMode(int)
,
Constant Field ValuesMethod Detail |
---|
void saveToFile(java.lang.String filename)
saveToFile
in interface IBrowserCanvas
filename
- Filename to save HTML to.java.lang.String getMozillaVersion()
void setCookieMode(int mode)
COOKIE_
* members in this class. Using
COOKIE_ACCEPT_ALL
or COOKIE_ACCEPT_NONE
modes
are equivalent to the IBrowserCanvas
methods
enableCookies
and disableCookies
respectively.
mode
- The cookie accept mode defined by COOKIE_
*.int getCookieMode()
COOKIE_
* members in this class. Using
COOKIE_ACCEPT_ALL
or COOKIE_ACCEPT_NONE
modes
are equivalent to the IBrowserCanvas
methods
COOKIE_
*.boolean findInPage(java.lang.String toFind, boolean matchCase, boolean wrap, boolean backwards)
void setProxyAuthentication(java.lang.String username, java.lang.String password)
void registerProtocol(java.lang.String protocol, ProtocolListener l)
protocol
- name of protocol to create or overridel
- listener to implement protocol
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |