|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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. |
Method Summary | |
void |
addDragListener(DragListener listener)
Adds a DragListener. |
void |
deleteCertificate(java.security.cert.X509Certificate cert)
Deletes the specified certificate from the browsers certificate database. |
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 |
boolean |
findInPage(java.lang.String toFind,
boolean matchCase,
boolean wrap,
boolean backwards,
boolean wholeWord)
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 Set wholeWord if you want the search to find whole words only |
java.security.cert.X509Certificate |
getCertificateByName(java.lang.String name)
Returns the specified certificate from the browsers certificate database. |
java.lang.String[] |
getCertificateNameList()
Gets a list of the common names of all the certificates in the browsers certificate database. |
java.security.cert.X509Certificate[] |
getCertificates()
Returns all the certificates in the browsers certificate database. |
int |
getCookieMode()
Get the current cookie accept mode. |
java.lang.String |
getMozillaVersion()
Returns the current version of mozilla from corecomponents |
void |
importCertificate(java.security.cert.X509Certificate cert,
boolean trusted)
Imports a certificate into the browsers certificate database. |
void |
removeDragListener(DragListener listener)
Removes the specified Drag listener so that it no longer receives browser events from this component. |
void |
saveToFile(java.lang.String filename)
Save the current HTML page to a local file. |
void |
setCertificateTrust(java.security.cert.X509Certificate cert,
boolean trusted)
Sets whether or not the certificate is to be trusted. |
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 |
public 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 Valuespublic static 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 Valuespublic static 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 |
public void saveToFile(java.lang.String filename)
saveToFile
in interface IBrowserCanvas
filename
- Filename to save HTML to.public java.lang.String getMozillaVersion()
public 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_
*.public int getCookieMode()
COOKIE_
* members in this class. Using
COOKIE_ACCEPT_ALL
or COOKIE_ACCEPT_NONE
modes
are equivalent to the IBrowserCanvas
methods
COOKIE_
*.public boolean findInPage(java.lang.String toFind, boolean matchCase, boolean wrap, boolean backwards)
public boolean findInPage(java.lang.String toFind, boolean matchCase, boolean wrap, boolean backwards, boolean wholeWord)
public void setProxyAuthentication(java.lang.String username, java.lang.String password)
public void importCertificate(java.security.cert.X509Certificate cert, boolean trusted)
cert
- The certificate to importtrusted
- whether this certificate is trusted or notpublic java.lang.String[] getCertificateNameList()
public java.security.cert.X509Certificate getCertificateByName(java.lang.String name)
name
- The name of the certificate to return
public java.security.cert.X509Certificate[] getCertificates()
public void setCertificateTrust(java.security.cert.X509Certificate cert, boolean trusted)
cert
- The certificate to have its trust value settrusted
- True if the certificate is to be trustedpublic void deleteCertificate(java.security.cert.X509Certificate cert)
cert
- The certificate to be deletedpublic void addDragListener(DragListener listener)
listener
- the DragListener to addremoveDragListener(com.webrenderer.event.DragListener)
public void removeDragListener(DragListener listener)
listener
is null, or listener
has not been previously added as
a listener, no exception is thrown and no action is performed.
Currently only available on Windows.
- Parameters:
listener
- The Drag listener to remove.- See Also:
addDragListener(DragListener)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |