Find-in-page helper More...
Import Statement: | import com.canonical.Oxide 1.15 |
Since: | OxideQt 1.8 |
Instantiates: | OxideQFindController |
FindController provides a mechanism to allow an application to provide find-in-page functionality.
Applications specify the search term by setting text. In response, the engine highlights any matches and updates count with the number of results. The application can then cycle through the results by calls to previous and next. The current position is indicated by current.
The current find-in-page request can be terminated by setting text to an empty string.
The number of results found. This will be 0 if text is an empty string.
Set this to the desired search term to begin a search in the current page. Set it to an empty string to terminate the current search.
Advance the document to the next search result. This will result in current being incremented by 1.
Move the document back to the previous search result. This will result in current being decremented by 1.