orcl
Class HighlightSearch

java.lang.Object
  extended by orcl.HighlightSearch

public class HighlightSearch
extends java.lang.Object

This Class used to highlight the search words in SQL Editor.


Constructor Summary
HighlightSearch()
           
 
Method Summary
 void highlight(javax.swing.text.JTextComponent textComp, java.lang.String pattern)
           
 void removeHighlights(javax.swing.text.JTextComponent textComp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HighlightSearch

public HighlightSearch()
Method Detail

highlight

public void highlight(javax.swing.text.JTextComponent textComp,
                      java.lang.String pattern)
Parameters:
textComp - Component which use in highlight.
pattern - the search word pattern.

removeHighlights

public void removeHighlights(javax.swing.text.JTextComponent textComp)
Parameters:
textComp - remove highlight from component.