com.ibm.lpex.samples
Class TestCommand

java.lang.Object
  |
  +--com.ibm.lpex.samples.TestCommand
All Implemented Interfaces:
LpexCommand

public class TestCommand
extends java.lang.Object
implements LpexCommand

This class is a sample command implementation. Running this command will display a short message on the editor message line.

Here is the TestCommand code.

To run this sample:

See Also:
LpexCommand, LpexView

Constructor Summary
TestCommand()
           
 
Method Summary
 boolean doCommand(LpexView lpexView, java.lang.String parameters)
          This method in the defined command will be called to run the command.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestCommand

public TestCommand()
Method Detail

doCommand

public boolean doCommand(LpexView lpexView,
                         java.lang.String parameters)
Description copied from interface: LpexCommand
This method in the defined command will be called to run the command.
Specified by:
doCommand in interface LpexCommand
Following copied from interface: com.ibm.lpex.core.LpexCommand
Parameters:
lpexView - the document view in which the command was issued
parameters - the command parameters