org.mozilla.webclient
Interface CurrentPage

All Known Subinterfaces:
CurrentPage2

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

copyCurrentSelectionToSystemClipboard

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.


findInPage

void findInPage(java.lang.String stringToFind,
                boolean forward,
                boolean matchCase)
Deprecated. this method has been replaced by 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.

Parameters:
stringToFind - the search string
forward - if true, search forward from the previous hit
matchCase - if true, the case must match in order to be considered a hit.

findNextInPage

void findNextInPage()
Deprecated. this method has been replaced by CurrentPage2.findNext().

Find the next occurrence of the String found with findInPage(java.lang.String, boolean, boolean).


getCurrentURL

java.lang.String getCurrentURL()

Return the URL of the document currently showing.


getDOM

org.w3c.dom.Document getDOM()

Return a W3C DOM Document of the document currently showing.


getPageInfo

java.util.Properties getPageInfo()

Unimplemented Return meta-information for the current page.


getSource

java.lang.String getSource()

Return the source for the current page as a String.


getSourceBytes

byte[] getSourceBytes()

Return the source for the current page as a byte array.


resetFind

void resetFind()

Reset the find so that the next find starts from the beginning or end of the page.


selectAll

void selectAll()

Tell the underlying browser to select all text in the current page.



Copyright 2002-2007 Mozilla.org All Rights Reserved.