|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CurrentPage2
Extended current page functionality.
Method Summary | |
---|---|
void |
clearAllSelections()
Make it so the current page has nothing selected. |
void |
copyCurrentSelectionHtmlToSystemClipboard()
Like CurrentPage.copyCurrentSelectionToSystemClipboard() but
puts the html of the selection on the clipboard, instead of the plain text |
boolean |
find(java.lang.String stringToFind,
boolean forward,
boolean matchCase)
Enhanced version of CurrentPage.findInPage(java.lang.String, boolean, boolean) that allows
the caller to discover the result of the find. |
boolean |
findNext()
Enhanced version of CurrentPage.findNextInPage() that allows
the caller to discover the result of the find. |
Selection |
getSelection()
Return a Selection instance for the current selection. |
void |
highlightSelection(Selection selection)
Take the argument Selection and highlight it in the
current page. |
void |
print()
Pop up a native print dialog to allow the user to print the current page. |
void |
printPreview(boolean preview)
Turn the browser into print preview mode depending on the value of the argument preview . |
Methods inherited from interface org.mozilla.webclient.CurrentPage |
---|
copyCurrentSelectionToSystemClipboard, findInPage, findNextInPage, getCurrentURL, getDOM, getPageInfo, getSource, getSourceBytes, resetFind, selectAll |
Method Detail |
---|
Selection getSelection()
Return a Selection
instance for the current selection.
This is the only way to obtain a Selection
instance.
void highlightSelection(Selection selection)
Take the argument Selection
and highlight it in the
current page.
selection
- the selection, obtained from getSelection()
to be highlighted.void clearAllSelections()
Make it so the current page has nothing selected.
void print()
Pop up a native print dialog to allow the user to print the current page.
void printPreview(boolean preview)
Turn the browser into print preview mode depending on the
value of the argument preview
.
preview
- if true, turn the browser into print preview mode.
If false, turn the browser to normal view mode.boolean find(java.lang.String stringToFind, boolean forward, boolean matchCase)
Enhanced version of CurrentPage.findInPage(java.lang.String, boolean, boolean)
that allows
the caller to discover the result of the find.
boolean findNext()
Enhanced version of CurrentPage.findNextInPage()
that allows
the caller to discover the result of the find.
void copyCurrentSelectionHtmlToSystemClipboard()
Like CurrentPage.copyCurrentSelectionToSystemClipboard()
but
puts the html of the selection on the clipboard, instead of the plain text
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |