LPEX
3.6.6

com.ibm.lpex.samples
Class FindsCommand

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

public class FindsCommand
extends Object
implements LpexCommand

Sample command finds - count find-text matches in the document. This command uses the current findText. settings to determine the number of occurrences in the document of either findText.findText or the specified text string. It is a purely-informational "findText all".

Here is the FindsCommand source code.

To run this sample:

When called with ? as a parameter, the command displays its syntax on the message line.

See Also:
MatchesCommand, All the samples

Constructor Summary
FindsCommand()
           
 
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

FindsCommand

public FindsCommand()
Method Detail

doCommand

public boolean doCommand(LpexView lpexView,
                         String parameters)
Runs this command. Displays the number of find-text matches in the view.

Specified by:
doCommand in interface LpexCommand
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.