net.infonode.tabbedpanel
Class TabDragEvent
java.lang.Object
java.util.EventObject
net.infonode.tabbedpanel.TabEvent
net.infonode.tabbedpanel.TabDragEvent
- All Implemented Interfaces:
- java.io.Serializable
public class TabDragEvent
- extends TabEvent
TabDragEvent is an mouseEvent that contains information about the tab that is
beeing dragged from a tabbed panel and a point specifying the mouse
coordinates.
- Version:
- $Revision: 1.13 $
- Author:
- $Author: jesper $
- See Also:
TabbedPanel
,
Tab
,
Serialized Form
Field Summary |
private java.awt.event.MouseEvent |
mouseEvent
|
Fields inherited from class java.util.EventObject |
source |
Method Summary |
java.awt.event.MouseEvent |
getMouseEvent()
Returns the mouse event that triggered this drag. |
java.awt.Point |
getPoint()
Gets the mouse coordinates |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
mouseEvent
private java.awt.event.MouseEvent mouseEvent
TabDragEvent
public TabDragEvent(java.lang.Object source,
Tab tab,
java.awt.Point point)
- Deprecated. Use
TabDragEvent(Object, java.awt.event.MouseEvent)
instead.
- Constructs a TabDragEvent
- Parameters:
source
- the Tab or TabbedPanel that is the source for this
mouseEventtab
- the Tab that is being draggedpoint
- the mouse coordinates relative to the Tab that is being
dragged
TabDragEvent
public TabDragEvent(java.lang.Object source,
java.awt.event.MouseEvent mouseEvent)
- Constructs a TabDragEvent
- Parameters:
source
- the Tab or TabbedPanel that is the source for thismouseEvent
- the mouse mouseEvent that triggered the drag, the event source should be the tab and the event
point should be relative to the tab- Since:
- ITP 1.3.0
getPoint
public java.awt.Point getPoint()
- Gets the mouse coordinates
- Returns:
- the mouse coordinats relative to the Tab that is beeing
dragged
getMouseEvent
public java.awt.event.MouseEvent getMouseEvent()
- Returns the mouse event that triggered this drag. The event source is set to the tab and the event point is
relative to the tab.
- Returns:
- the mouse event that triggered this drag
- Since:
- ITP 1.3.0