LPEX
4.4.0

com.ibm.lpex.samples
Class LongestCommand

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

public class LongestCommand
extends Object
implements LpexCommand

Sample command longest - locate the longest text line. Run this command to locate the first longest, or next longer, visible text line in the current view. Trailing white space in the text is ignored.

Here is the LongestCommand source code.

To run this sample:

See Also:
All the samples

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

LongestCommand

public LongestCommand()
Method Detail

doCommand

public boolean doCommand(LpexView lpexView,
                         String parameters)
Runs this command. Positions the cursor on the first longest visible text line.

Specified by:
doCommand in interface LpexCommand
Parameters:
lpexView - the document view in which the command was issued
parameters - optional "next" to start from the current element, or "?" to display the syntax of this command

LPEX
4.4.0

Copyright � 2016 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.