SEARCH_REPLACED: This event is fired when a matching text is found and replaced with the replacement text. getFindResult() will always be a non-null value which tells you
the start and end offset of the matching text. getReplaceText() will tell you the replacement text. This event is fired for both interactive replace and replace-all.
- See Also:
- Serialized Form
Constructor Summary |
FindAndReplaceEvent(Object source,
int id)
|
FindAndReplaceEvent(Object source,
int status,
FindResult findResult)
|
FindAndReplaceEvent(Object source,
int status,
FindResults findResults)
|
FindAndReplaceEvent(Object source,
int status,
FindResult findResult,
String replaceString)
|
FindAndReplaceEvent(Object source,
int status,
String targetName)
|
FindAndReplaceEvent(Object source,
int status,
String targetName,
FindResults findResults)
|
SEARCH_STARTED
public static final int SEARCH_STARTED
- See Also:
- Constant Field Values
SEARCH_STARTED_TEXT
public static final int SEARCH_STARTED_TEXT
- See Also:
- Constant Field Values
SEARCH_FINISHED
public static final int SEARCH_FINISHED
- See Also:
- Constant Field Values
SEARCH_FINISHED_TEXT
public static final int SEARCH_FINISHED_TEXT
- See Also:
- Constant Field Values
SEARCH_FOUND
public static final int SEARCH_FOUND
- See Also:
- Constant Field Values
SEARCH_REPLACED
public static final int SEARCH_REPLACED
- See Also:
- Constant Field Values
FindAndReplaceEvent
public FindAndReplaceEvent(Object source,
int id)
FindAndReplaceEvent
public FindAndReplaceEvent(Object source,
int status,
FindResult findResult)
FindAndReplaceEvent
public FindAndReplaceEvent(Object source,
int status,
String targetName,
FindResults findResults)
FindAndReplaceEvent
public FindAndReplaceEvent(Object source,
int status,
FindResults findResults)
FindAndReplaceEvent
public FindAndReplaceEvent(Object source,
int status,
String targetName)
FindAndReplaceEvent
public FindAndReplaceEvent(Object source,
int status,
FindResult findResult,
String replaceString)
getStatus
public int getStatus()
getFindResult
public FindResult getFindResult()
getFindResults
public FindResults getFindResults()
getTargetName
public String getTargetName()
getReplaceText
public String getReplaceText()
toString
public String toString()
- Overrides:
toString
in class EventObject