|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectkawigi.cmd.FindReplaceContext
public class FindReplaceContext
An object held by a CodePane that holds state used by Find/Replace Actions.
| Constructor Summary | |
|---|---|
FindReplaceContext(Dispatcher disp)
Constructs a new FindReplaceContext which operates on commands in the given subdispatcher. |
|
| Method Summary | |
|---|---|
boolean |
dialogShowing()
Returns true if the find/replace dialog has been created and is showing. |
java.lang.String |
escapePattern(java.lang.String pattern)
Takes a search string that isn't supposed to be used as a regular expression and makes it regular-expression-able by escaping characters that would otherwise have an unwanted meaning in a regular expression (or worse, make the regular expression not compile, in which case we'd be hosed). |
boolean |
getCaseSensitive()
Returns true if the "Case Sensitive" option is on. |
java.util.regex.Pattern |
getCurrentPattern()
Gets a regular expression pattern representing the current search string. |
javax.swing.JDialog |
getDialog()
Returns the Find/Replace dialog. |
java.lang.String |
getReplacement()
Returns the current replacement string. |
java.lang.String |
getSearchString()
Returns the current search string. |
boolean |
getWholeWord()
Returns true if the "Whole Word" option is on. |
boolean |
isShowingReplace()
Returns true if the replace options should be showing. |
void |
setReplacement(java.lang.String s)
Sets the current replacement string. |
void |
setSearchString(java.lang.String s)
Sets the current search string. |
void |
setUseLiteral()
Sets the search mode to literal string matching. |
void |
setUseRegex()
Sets the search mode to regular expressions. |
void |
setUseWildcards()
Sets the search mode to use wildcards. |
void |
showing(boolean replace)
Gets the Find/Replace dialog and shows it. |
void |
toggleCaseSensitive()
Toggles the "Case Sensitive" option. |
void |
toggleWholeWord()
Toggles the "Whole Word" option. |
boolean |
useLiteral()
Returns true if literal string matching should be used. |
boolean |
useRegex()
Returns true if regular expression matching should be used. |
boolean |
useWildcards()
Returns true if wildcard matching should be used. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FindReplaceContext(Dispatcher disp)
| Method Detail |
|---|
public java.lang.String getSearchString()
public java.lang.String getReplacement()
public void setSearchString(java.lang.String s)
public void setReplacement(java.lang.String s)
public void showing(boolean replace)
public boolean isShowingReplace()
public void toggleWholeWord()
public void toggleCaseSensitive()
public boolean getWholeWord()
public boolean getCaseSensitive()
public boolean useLiteral()
public boolean useWildcards()
public boolean useRegex()
public void setUseLiteral()
public void setUseWildcards()
public void setUseRegex()
public java.util.regex.Pattern getCurrentPattern()
public java.lang.String escapePattern(java.lang.String pattern)
public boolean dialogShowing()
public javax.swing.JDialog getDialog()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||