|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CurrentPage
Get information about and perform operations on the page currently
being shown in the BrowserControlCanvas
for the BrowserControl
instance from which this CurrentPage
instance was obtained.
Method Summary | |
---|---|
void |
copyCurrentSelectionToSystemClipboard()
Copy the current selection to the system clipboard so its contents can be obtained using the standard Java Toolkit.getDefaultToolkit().getSystemClipboard()
method. |
void |
findInPage(java.lang.String stringToFind,
boolean forward,
boolean matchCase)
Deprecated. this method has been replaced by CurrentPage2.find(java.lang.String, boolean, boolean) . |
void |
findNextInPage()
Deprecated. this method has been replaced by CurrentPage2.findNext() . |
java.lang.String |
getCurrentURL()
Return the URL of the document currently
showing. |
org.w3c.dom.Document |
getDOM()
Return a W3C DOM Document of the document currently
showing. |
java.util.Properties |
getPageInfo()
Unimplemented Return meta-information for the current page. |
java.lang.String |
getSource()
Return the source for the current page as a String. |
byte[] |
getSourceBytes()
Return the source for the current page as a byte
array. |
void |
resetFind()
Reset the find so that the next find starts from the beginning or end of the page. |
void |
selectAll()
Tell the underlying browser to select all text in the current page. |
Method Detail |
---|
void copyCurrentSelectionToSystemClipboard()
Copy the current selection to the system clipboard so its
contents can be obtained using the standard Java
Toolkit.getDefaultToolkit().getSystemClipboard()
method. The selection that is copied may be made either by the
user, or programmatically via the selectAll()
or CurrentPage2.highlightSelection(org.mozilla.webclient.Selection)
methods.
void findInPage(java.lang.String stringToFind, boolean forward, boolean matchCase)
CurrentPage2.find(java.lang.String, boolean, boolean)
.
Search for the argument stringToFind
in the
current page, highlighting it and scrolling the view to show
it.
stringToFind
- the search stringforward
- if true
, search forward from the
previous hitmatchCase
- if true
, the case must match in
order to be considered a hit.void findNextInPage()
CurrentPage2.findNext()
.
Find the next occurrence of the String found with findInPage(java.lang.String, boolean, boolean)
.
java.lang.String getCurrentURL()
Return the URL
of the document currently
showing.
org.w3c.dom.Document getDOM()
Return a W3C DOM Document
of the document currently
showing.
java.util.Properties getPageInfo()
Unimplemented Return meta-information for the current page.
java.lang.String getSource()
Return the source for the current page as a String.
byte[] getSourceBytes()
Return the source for the current page as a byte
array.
void resetFind()
Reset the find so that the next find starts from the beginning or end of the page.
void selectAll()
Tell the underlying browser to select all text in the current page.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |