Package groovy.console.ui.text
Class FindReplaceUtility
- java.lang.Object
- 
- groovy.console.ui.text.FindReplaceUtility
 
- 
 public final class FindReplaceUtility extends Object 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringCLOSE_ACTION_COMMANDstatic ActionFIND_ACTIONstatic StringFIND_ACTION_COMMANDstatic StringREPLACE_ACTION_COMMANDstatic StringREPLACE_ALL_ACTION_COMMAND
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddTextListener(TextListener tl)static voiddispose()static StringgetLastAction()static intgetReplacementCount()static StringgetSearchText()static voidregisterTextComponent(JTextComponent textComponent)static voidremoveTextListener(TextListener tl)static voidshowDialog()static voidshowDialog(boolean isReplace)static voidunregisterTextComponent(JTextComponent textComponent)
 
- 
- 
- 
Field Detail- 
FIND_ACTION_COMMANDpublic static final String FIND_ACTION_COMMAND - See Also:
- Constant Field Values
 
 - 
REPLACE_ACTION_COMMANDpublic static final String REPLACE_ACTION_COMMAND - See Also:
- Constant Field Values
 
 - 
REPLACE_ALL_ACTION_COMMANDpublic static final String REPLACE_ALL_ACTION_COMMAND - See Also:
- Constant Field Values
 
 - 
CLOSE_ACTION_COMMANDpublic static final String CLOSE_ACTION_COMMAND - See Also:
- Constant Field Values
 
 - 
FIND_ACTIONpublic static final Action FIND_ACTION 
 
- 
 - 
Method Detail- 
addTextListenerpublic static void addTextListener(TextListener tl) 
 - 
getLastActionpublic static String getLastAction() - Returns:
- the last action
 
 - 
getReplacementCountpublic static int getReplacementCount() - Returns:
- the replacement count
 
 - 
getSearchTextpublic static String getSearchText() - Returns:
- the search text
 
 - 
registerTextComponentpublic static void registerTextComponent(JTextComponent textComponent) - Parameters:
- textComponent- the text component to listen to
 
 - 
removeTextListenerpublic static void removeTextListener(TextListener tl) 
 - 
showDialogpublic static void showDialog() 
 - 
showDialogpublic static void showDialog(boolean isReplace) - Parameters:
- isReplace- show a replace dialog rather than a find dialog if true
 
 - 
unregisterTextComponentpublic static void unregisterTextComponent(JTextComponent textComponent) - Parameters:
- textComponent- the text component to stop listening to
 
 - 
disposepublic static void dispose() 
 
- 
 
-