Package groovy.ui.text
Class FindReplaceUtility
- java.lang.Object
- 
- groovy.ui.text.FindReplaceUtility
 
- 
 public final class FindReplaceUtility extends java.lang.Object
- 
- 
Field SummaryFields Modifier and Type Field Description static java.lang.StringCLOSE_ACTION_COMMANDstatic javax.swing.ActionFIND_ACTIONstatic java.lang.StringFIND_ACTION_COMMANDstatic java.lang.StringREPLACE_ACTION_COMMANDstatic java.lang.StringREPLACE_ALL_ACTION_COMMAND
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddTextListener(java.awt.event.TextListener tl)static voiddispose()static java.lang.StringgetLastAction()static intgetReplacementCount()static java.lang.StringgetSearchText()static voidregisterTextComponent(javax.swing.text.JTextComponent textComponent)static voidremoveTextListener(java.awt.event.TextListener tl)static voidshowDialog()static voidshowDialog(boolean isReplace)static voidunregisterTextComponent(javax.swing.text.JTextComponent textComponent)
 
- 
- 
- 
Field Detail- 
FIND_ACTION_COMMANDpublic static final java.lang.String FIND_ACTION_COMMAND - See Also:
- Constant Field Values
 
 - 
REPLACE_ACTION_COMMANDpublic static final java.lang.String REPLACE_ACTION_COMMAND - See Also:
- Constant Field Values
 
 - 
REPLACE_ALL_ACTION_COMMANDpublic static final java.lang.String REPLACE_ALL_ACTION_COMMAND - See Also:
- Constant Field Values
 
 - 
CLOSE_ACTION_COMMANDpublic static final java.lang.String CLOSE_ACTION_COMMAND - See Also:
- Constant Field Values
 
 - 
FIND_ACTIONpublic static final javax.swing.Action FIND_ACTION 
 
- 
 - 
Method Detail- 
addTextListenerpublic static void addTextListener(java.awt.event.TextListener tl) 
 - 
getLastActionpublic static java.lang.String getLastAction() - Returns:
- the last action
 
 - 
getReplacementCountpublic static int getReplacementCount() - Returns:
- the replacement count
 
 - 
getSearchTextpublic static java.lang.String getSearchText() - Returns:
- the search text
 
 - 
registerTextComponentpublic static void registerTextComponent(javax.swing.text.JTextComponent textComponent) - Parameters:
- textComponent- the text component to listen to
 
 - 
removeTextListenerpublic static void removeTextListener(java.awt.event.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(javax.swing.text.JTextComponent textComponent) - Parameters:
- textComponent- the text component to stop listening to
 
 - 
disposepublic static void dispose() 
 
- 
 
-