LPEX
3.6.6

com.ibm.lpex.samples
Class MatchesCommand

java.lang.Object
  extended by com.ibm.lpex.samples.FindsCommand
      extended by com.ibm.lpex.samples.MatchesCommand
All Implemented Interfaces:
LpexCommand

public class MatchesCommand
extends FindsCommand

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:

When called with ? as a parameter, the command displays its syntax on the message line. It also clears any existing matches.

See Also:
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

MatchesCommand

public MatchesCommand()
Method Detail

doCommand

public boolean doCommand(LpexView lpexView,
                         String parameters)
Runs this command. Highlights the find-text matches on the current screen.

Specified by:
doCommand in interface LpexCommand
Overrides:
doCommand in class FindsCommand
Parameters:
lpexView - the document view in which the command was issued
parameters - the command parameters

LPEX
3.6.6

Copyright © 2012 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.