public final class FindReplaceUtility extends Object
| Modifier and Type | Field and Description | 
|---|---|
static String | 
CLOSE_ACTION_COMMAND  | 
static Action | 
FIND_ACTION  | 
static String | 
FIND_ACTION_COMMAND  | 
static String | 
REPLACE_ACTION_COMMAND  | 
static String | 
REPLACE_ALL_ACTION_COMMAND  | 
| Modifier and Type | Method and Description | 
|---|---|
static void | 
addTextListener(TextListener tl)  | 
static void | 
dispose()  | 
static String | 
getLastAction()  | 
static int | 
getReplacementCount()  | 
static String | 
getSearchText()  | 
static void | 
registerTextComponent(JTextComponent textComponent)  | 
static void | 
removeTextListener(TextListener tl)  | 
static void | 
showDialog()  | 
static void | 
showDialog(boolean isReplace)  | 
static void | 
unregisterTextComponent(JTextComponent textComponent)  | 
public static final String FIND_ACTION_COMMAND
public static final String REPLACE_ACTION_COMMAND
public static final String REPLACE_ALL_ACTION_COMMAND
public static final String CLOSE_ACTION_COMMAND
public static final Action FIND_ACTION
public static void addTextListener(TextListener tl)
public static String getLastAction()
public static int getReplacementCount()
public static String getSearchText()
public static void registerTextComponent(JTextComponent textComponent)
textComponent - the text component to listen topublic static void removeTextListener(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(JTextComponent textComponent)
textComponent - the text component to stop listening topublic static void dispose()