|
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.MinLpex
public final class MinLpex
Sample minimal stand-alone editor used to test the LPEX edit widget. Modifying this sample is an easy way to test your extensions to the LPEX widget.
Here is the MinLpex source code.
To run this sample from the command line:
java [Java options] com.ibm.lpex.samples.MinLpex [filename]Commands and actions defined in here:
Example of opening a file with MinLpex via a user-defined editor command:
lpexView.defineCommand("MinLpex", new LpexCommand() { public boolean doCommand(LpexView view, final String parameters) { Display display = getDisplay(); display.asyncExec(new Runnable() { public void run() { try { Class cl = Class.forName("com.ibm.lpex.samples.MinLpex"); Method mainMethod = cl.getDeclaredMethod("main", new Class[] {String[].class}); String[] args = new String[] {parameters}; mainMethod.invoke(null, new Object[] {args}); } catch (Exception e) {} }}); return true; } }); |
Lpex
,
All the samples
Constructor Summary | |
---|---|
MinLpex(String filename,
Rectangle bounds)
Constructor. |
Method Summary | |
---|---|
static void |
main(String[] args)
Entry point. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MinLpex(String filename, Rectangle bounds)
filename
- file namebounds
- size and position for the windowMethod Detail |
---|
public static void main(String[] args)
|
LPEX 4.4.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |