Package net.infonode.tabbedpanel
Class TabDragEvent
java.lang.Object
java.util.EventObject
net.infonode.tabbedpanel.TabEvent
net.infonode.tabbedpanel.TabDragEvent
- All Implemented Interfaces:
Serializable
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.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionTabDragEvent
(Object source, MouseEvent mouseEvent) Constructs a TabDragEventTabDragEvent
(Object source, Tab tab, Point point) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionReturns the mouse event that triggered this drag.getPoint()
Gets the mouse coordinatesMethods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
TabDragEvent
Deprecated.UseTabDragEvent(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
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
-
-
Method Details
-
getPoint
Gets the mouse coordinates- Returns:
- the mouse coordinats relative to the Tab that is beeing dragged
-
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
-
TabDragEvent(Object, java.awt.event.MouseEvent)
instead.