|
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.SyncCommand
public class SyncCommand
Sample command sync - synchronize the vertical scrolling of two views. Vertical scrolling in the current document view will trigger a similar scrolling of the selected view. Scrolling in the other view does not reciprocate, allowing you to adjust the synchronization when there is a difference in the number of lines between the two views.
For best results ensure the views have the same size, and are either not filtered or filtered on the same terms.
Here is the SyncCommand source code.
To run this sample:
set commandClass.sync com.ibm.lpex.samples.SyncCommand
sync [on | off]
All the samples
Constructor Summary | |
---|---|
SyncCommand()
|
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 |
---|
public SyncCommand()
Method Detail |
---|
public boolean doCommand(LpexView lpexView, String parameters)
doCommand
in interface LpexCommand
lpexView
- the document view in which the command was issuedparameters
- optional parameter "on" / "off" / "?"
|
LPEX 4.4.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |