|
LPEX 4.4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.lpex.samples.FindsCommand
com.ibm.lpex.samples.MatchesCommand
public class MatchesCommand
Sample command matches - highlight find-text matches in the document.
This command extends FindsCommand to determine, and also highlight, the
occurrences in the document of either findText.findText or the
specified text string. It is a "findText all" which highlights the results
rather than filtering the view.
Here is the MatchesCommand source code.
To run this sample:
set commandClass.matches com.ibm.lpex.samples.MatchesCommand
matches [text]
? as a parameter, the command displays its syntax
on the message line. It also clears any existing matches.
All the samples| Constructor Summary | |
|---|---|
MatchesCommand()
|
|
| Method Summary | |
|---|---|
boolean |
doCommand(LpexView lpexView,
String parameters)
Runs this command. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MatchesCommand()
| Method Detail |
|---|
public boolean doCommand(LpexView lpexView,
String parameters)
doCommand in interface LpexCommanddoCommand in class FindsCommandlpexView - the document view in which the command was issuedparameters - the command parameters
|
LPEX 4.4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||