org.mozilla.webclient
Interface CurrentPage2

All Superinterfaces:
CurrentPage

public interface CurrentPage2
extends CurrentPage

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

getSelection

Selection getSelection()

Return a Selection instance for the current selection. This is the only way to obtain a Selection instance.


highlightSelection

void highlightSelection(Selection selection)

Take the argument Selection and highlight it in the current page.

Parameters:
selection - the selection, obtained from getSelection() to be highlighted.

clearAllSelections

void clearAllSelections()

Make it so the current page has nothing selected.


print

void print()

Pop up a native print dialog to allow the user to print the current page.


printPreview

void printPreview(boolean preview)

Turn the browser into print preview mode depending on the value of the argument preview.

Parameters:
preview - if true, turn the browser into print preview mode. If false, turn the browser to normal view mode.

find

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.


findNext

boolean findNext()

Enhanced version of CurrentPage.findNextInPage() that allows the caller to discover the result of the find.


copyCurrentSelectionHtmlToSystemClipboard

void copyCurrentSelectionHtmlToSystemClipboard()

Like CurrentPage.copyCurrentSelectionToSystemClipboard() but puts the html of the selection on the clipboard, instead of the plain text



Copyright © 2002-2007 Mozilla.org All Rights Reserved.