|
LPEX 4.4.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.lpex.samples.TestCommand
public class TestCommand
Sample command - display a message. Running this command displays, on the editor message line, a short message identifying itself and its parameters.
Here is the TestCommand source code.
To run this sample:
set commandClass.testCommand com.ibm.lpex.samples.TestCommand
testCommand [parameters]
A user command is a Java class that implements the com.ibm.lpex.core.LpexCommand interface.
All the samples
Constructor Summary | |
---|---|
TestCommand()
|
Method Summary | |
---|---|
static String |
commandName(LpexCommand lpexCommand,
LpexView lpexView)
Returns the name assigned to an instance of a user-defined command in the specified view. |
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 TestCommand()
Method Detail |
---|
public boolean doCommand(LpexView lpexView, String parameters)
doCommand
in interface LpexCommand
lpexView
- the document view in which the command was issuedparameters
- optional command parameterspublic static String commandName(LpexCommand lpexCommand, LpexView lpexView)
lpexCommand
- instance of an LPEX commandlpexView
- a document view in which it is defined
|
LPEX 4.4.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |