Package groovy.console.ui.text
Class FindReplaceUtility
java.lang.Object
groovy.console.ui.text.FindReplaceUtility
public final class FindReplaceUtility extends Object
- 
Field Summary
Fields Modifier and Type Field Description static StringCLOSE_ACTION_COMMANDstatic ActionFIND_ACTIONstatic StringFIND_ACTION_COMMANDstatic StringREPLACE_ACTION_COMMANDstatic StringREPLACE_ALL_ACTION_COMMAND - 
Method Summary
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 Details
- 
FIND_ACTION_COMMAND
- See Also:
 - Constant Field Values
 
 - 
REPLACE_ACTION_COMMAND
- See Also:
 - Constant Field Values
 
 - 
REPLACE_ALL_ACTION_COMMAND
- See Also:
 - Constant Field Values
 
 - 
CLOSE_ACTION_COMMAND
- See Also:
 - Constant Field Values
 
 - 
FIND_ACTION
 
 - 
 - 
Method Details
- 
addTextListener
 - 
getLastAction
- Returns:
 - the last action
 
 - 
getReplacementCount
public static int getReplacementCount()- Returns:
 - the replacement count
 
 - 
getSearchText
- Returns:
 - the search text
 
 - 
registerTextComponent
- Parameters:
 textComponent- the text component to listen to
 - 
removeTextListener
 - 
showDialog
public static void showDialog() - 
showDialog
public static void showDialog(boolean isReplace)- Parameters:
 isReplace- show a replace dialog rather than a find dialog if true
 - 
unregisterTextComponent
- Parameters:
 textComponent- the text component to stop listening to
 - 
dispose
public static void dispose() 
 -