|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.plaf.basic.BasicTreeUI.MouseInputHandler
public class BasicTreeUI.MouseInputHandler
MouseInputHandler handles passing all mouse events, including mouse motion events, until the mouse is released to the destination it is constructed with.
Field Summary | |
---|---|
protected Component |
destination
Destination that receives all events. |
protected Component |
source
Source that events are coming from |
Constructor Summary | |
---|---|
BasicTreeUI.MouseInputHandler(Component source,
Component destination,
MouseEvent e)
Constructor |
Method Summary | |
---|---|
void |
mouseClicked(MouseEvent e)
Invoked when the mouse button has been clicked (pressed and released) on a component. |
void |
mouseDragged(MouseEvent e)
Invoked when a mouse button is pressed on a component and then dragged. |
void |
mouseEntered(MouseEvent e)
Invoked when the mouse enters a component. |
void |
mouseExited(MouseEvent e)
Invoked when the mouse exits a component. |
void |
mouseMoved(MouseEvent e)
Invoked when the mouse cursor has been moved onto a component but no buttons have been pushed. |
void |
mousePressed(MouseEvent e)
Invoked when a mouse button has been pressed on a component. |
void |
mouseReleased(MouseEvent e)
Invoked when a mouse button has been released on a component. |
protected void |
removeFromSource()
Removes event from the source |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Component source
protected Component destination
Constructor Detail |
---|
public BasicTreeUI.MouseInputHandler(Component source, Component destination, MouseEvent e)
source
- that events are coming fromdestination
- that receives all eventse
- is the event receivedMethod Detail |
---|
public void mouseClicked(MouseEvent e)
mouseClicked
in interface MouseListener
e
- mouse event that occuredpublic void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
e
- mouse event that occuredpublic void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
e
- mouse event that occuredpublic void mouseEntered(MouseEvent e)
mouseEntered
in interface MouseListener
e
- mouse event that occuredpublic void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
e
- mouse event that occuredpublic void mouseDragged(MouseEvent e)
mouseDragged
in interface MouseMotionListener
e
- mouse event that occuredpublic void mouseMoved(MouseEvent e)
mouseMoved
in interface MouseMotionListener
e
- mouse event that occuredprotected void removeFromSource()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |