com.borland.primetime.editor
Class SearchManager.SearchListener

java.lang.Object
  |
  +--com.borland.primetime.editor.SearchManager.SearchListener
All Implemented Interfaces:
java.util.EventListener, SearchResultsListener
Enclosing class:
SearchManager

public static class SearchManager.SearchListener
extends java.lang.Object
implements SearchResultsListener

Helper class to implement the SearchResultsListener. This class is responsible for telling the messageview about any matches found during the search.


Constructor Summary
SearchManager.SearchListener(EditorPane editor, java.lang.String searchText)
          Create a new SearchListener and store the editor and search text this listener belongs to.
 
Method Summary
 void matchFound(EditorPane editor, int line, int column, int length, java.lang.String searchText, java.lang.String matchLine)
          Implementation of the SearchResultsListener interface
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchManager.SearchListener

public SearchManager.SearchListener(EditorPane editor,
                                    java.lang.String searchText)
Create a new SearchListener and store the editor and search text this listener belongs to.
Parameters:
editor - the editor where the search was issued.
searchText - the text that is searched for.
Method Detail

matchFound

public void matchFound(EditorPane editor,
                       int line,
                       int column,
                       int length,
                       java.lang.String searchText,
                       java.lang.String matchLine)
Implementation of the SearchResultsListener interface
Specified by:
matchFound in interface SearchResultsListener
Parameters:
line - The line on which the start of the match was found.
column - The column on which the start of the match was found.
length - The length of the match (important for regular expressions).
searchText - The text that was searched for.
matchLine - The line containing the start of the text which was matched.