by, 03-04-2012 at 05:29 PM (535 Views)
Mouse actions that take place in component are indicated by the MouseEvent. In a particular component, mouse action takes place if there is mouse cursor at the unobscured component parts, when such action occurs.
In case of the lightweight components when mouse event are enabled at component, they are just dispatched to component.
Appropriate EventListener addition to the mouse event takes place to enable them. If they are not enable at component the correspondent mouse events get dispatched to 1st ancestors which have made mouse events enabled. Component object generates the low level event.
1. a mouse button pressed.
2. a mouse button released
3. a mouse button clicked
4. Entrance of the mouse cursor takes place in geometry of componentís unobscured part
5. Exit of the mouse cursor takes place in geometry of componentís unobscured part
Mouse Motion Events
1. Movement of mouse
2. Draging the mouse