|
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.core.LpexViewAdapter com.ibm.lpex.samples.MouseReselect
public class MouseReselect
Sample class to make new drags of mouse button 1 start new selections.
LPEX non-stream selections are by default extended on mouse drags in the same view. They must be explicitly cleared (with, for example, Alt+U) before marking a new block. Installing this class changes the default behavior of a view such that a new mouse drag action (mouse button 1 with no key modifiers) will always start a new selection.
Here is the MouseReselect source code.
A user profile (such as TestUserProfile
) can install this feature
in a document view by calling:
MouseReselect.install(lpexView);
See also BlockNewMarkToMouseAction
as an example of an editor
action that installs this feature when it is run for the first time.
All the samples
Method Summary | |
---|---|
void |
disposed(LpexView lpexView)
View listener - the view is being disposed. |
static void |
install(LpexView lpexView)
Installs mouse reselection in the given document view. |
void |
mouseDoubleClick(MouseEvent e)
Mouse listener - button double click. |
void |
mouseDown(MouseEvent e)
Mouse listener - button pressed. |
void |
mouseMove(MouseEvent e)
Mouse move listener. |
void |
mouseUp(MouseEvent e)
Mouse listener - button released. |
void |
shown(LpexView lpexView)
View listener - the view has been refreshed. |
void |
widgetDisposed(DisposeEvent e)
Text window dispose listener - the window is being disposed. |
Methods inherited from class com.ibm.lpex.core.LpexViewAdapter |
---|
readonly, renamed, renaming, saved, saving, showing, updateProfile |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void install(LpexView lpexView)
public void shown(LpexView lpexView)
shown
in interface LpexViewListener
shown
in class LpexViewAdapter
LpexViewListener.showing(com.ibm.lpex.core.LpexView)
public void disposed(LpexView lpexView)
disposed
in interface LpexViewListener
disposed
in class LpexViewAdapter
public void widgetDisposed(DisposeEvent e)
public void mouseDoubleClick(MouseEvent e)
public void mouseUp(MouseEvent e)
public void mouseDown(MouseEvent e)
public void mouseMove(MouseEvent e)
|
LPEX 4.4.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |