public final class FindReplaceUtility
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
| static java.lang.String | CLOSE_ACTION_COMMAND | 
| static javax.swing.Action | FIND_ACTION | 
| static java.lang.String | FIND_ACTION_COMMAND | 
| static java.lang.String | REPLACE_ACTION_COMMAND | 
| static java.lang.String | REPLACE_ALL_ACTION_COMMAND | 
| Modifier and Type | Method and Description | 
|---|---|
| static void | addTextListener(java.awt.event.TextListener tl) | 
| static void | dispose() | 
| static java.lang.String | getLastAction() | 
| static int | getReplacementCount() | 
| static java.lang.String | getSearchText() | 
| static void | registerTextComponent(javax.swing.text.JTextComponent textComponent) | 
| static void | removeTextListener(java.awt.event.TextListener tl) | 
| static void | showDialog() | 
| static void | showDialog(boolean isReplace) | 
| static void | unregisterTextComponent(javax.swing.text.JTextComponent textComponent) | 
public static final java.lang.String FIND_ACTION_COMMAND
public static final java.lang.String REPLACE_ACTION_COMMAND
public static final java.lang.String REPLACE_ALL_ACTION_COMMAND
public static final java.lang.String CLOSE_ACTION_COMMAND
public static final javax.swing.Action FIND_ACTION
public static void addTextListener(java.awt.event.TextListener tl)
public static java.lang.String getLastAction()
public static int getReplacementCount()
public static java.lang.String getSearchText()
public static void registerTextComponent(javax.swing.text.JTextComponent textComponent)
textComponent - the text component to listen topublic static void removeTextListener(java.awt.event.TextListener tl)
public static void showDialog()
public static void showDialog(boolean isReplace)
isReplace - show a replace dialog rather than a find dialog if truepublic static void unregisterTextComponent(javax.swing.text.JTextComponent textComponent)
textComponent - the text component to stop listening topublic static void dispose()