|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.zaval.lw.LwCursorManager
This manager is used to support mouse cursor changing for a light weight component. To support the mouse cursor changing there are two ways :
setCursorType method that allows to define the mouse
cursorable interface that defines a cursor type for the component.
| Constructor Summary | |
LwCursorManager()
|
|
| Method Summary | |
void |
dispose()
|
void |
endDragged(LwMouseMotionEvent e)
Invoked when the mouse ends dragged. |
Cursorable |
getCursorable(LwComponent target)
Gets the current cursorable interface for the given component. |
int |
getCursorType()
Gets the current cursor type. |
void |
mouseClicked(LwMouseEvent e)
Invoked when the mouse button has been clicked on a light weight component. |
void |
mouseDragged(LwMouseMotionEvent e)
Invoked when a mouse button is pressed on a component and then dragged. |
void |
mouseEntered(LwMouseEvent e)
Invoked when the mouse enters a light weight component. |
void |
mouseExited(LwMouseEvent e)
Invoked when the mouse exits a light weight component. |
void |
mouseMoved(LwMouseMotionEvent e)
Invoked when the mouse pointer has been moved on a light weight component (with no buttons no down). |
void |
mousePressed(LwMouseEvent e)
Invoked when the mouse button has been pressed on a light weight component. |
void |
mouseReleased(LwMouseEvent e)
Invoked when the mouse button has been released on a light weight component. |
void |
setCursorable(LwComponent target,
Cursorable c)
Sets the specified cursorable interface for the given component. |
void |
startDragged(LwMouseMotionEvent e)
Invoked when the mouse starts dragged. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LwCursorManager()
| Method Detail |
public void dispose()
dispose in interface LwManagerpublic void mouseEntered(LwMouseEvent e)
LwMouseListenermouseEntered in interface LwMouseListenerorg.zaval.lw.event.LwMouseListenere - the specified mouse event.public void mouseExited(LwMouseEvent e)
LwMouseListenermouseExited in interface LwMouseListenerorg.zaval.lw.event.LwMouseListenere - the specified mouse event.public void endDragged(LwMouseMotionEvent e)
LwMouseMotionListenerendDragged in interface LwMouseMotionListenerorg.zaval.lw.event.LwMouseMotionListenere - the specified mouse motion event.public void mouseMoved(LwMouseMotionEvent e)
LwMouseMotionListenermouseMoved in interface LwMouseMotionListenerorg.zaval.lw.event.LwMouseMotionListenere - the specified mouse motion event.public void startDragged(LwMouseMotionEvent e)
LwMouseMotionListenerstartDragged in interface LwMouseMotionListenerorg.zaval.lw.event.LwMouseMotionListenere - the specified mouse motion event.public void mouseDragged(LwMouseMotionEvent e)
LwMouseMotionListenermouseDragged in interface LwMouseMotionListenerorg.zaval.lw.event.LwMouseMotionListenere - the specified mouse motion event.public void mouseClicked(LwMouseEvent e)
LwMouseListenermouseClicked in interface LwMouseListenerorg.zaval.lw.event.LwMouseListenere - the specified mouse event.public void mousePressed(LwMouseEvent e)
LwMouseListenermousePressed in interface LwMouseListenerorg.zaval.lw.event.LwMouseListenere - the specified mouse event.public void mouseReleased(LwMouseEvent e)
LwMouseListenermouseReleased in interface LwMouseListenerorg.zaval.lw.event.LwMouseListenere - the specified mouse event.
public void setCursorable(LwComponent target,
Cursorable c)
null as the cursorable interface. The interface
points the manager what cursor type should be set for the specified component.target - the component.c - the specified cursorable interface.public Cursorable getCursorable(LwComponent target)
target - the given component.public int getCursorType()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||