net.infonode.tabbedpanel
Class TabDragEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bynet.infonode.tabbedpanel.TabEvent
          extended bynet.infonode.tabbedpanel.TabDragEvent
All Implemented Interfaces:
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 $
See Also:
TabbedPanel, Tab, Serialized Form

Constructor Summary
TabDragEvent(Object source, MouseEvent mouseEvent)
          Constructs a TabDragEvent
TabDragEvent(Object source, Tab tab, Point point)
          Deprecated. Use TabDragEvent(Object, java.awt.event.MouseEvent) instead.
 
Method Summary
 MouseEvent getMouseEvent()
          Returns the mouse event that triggered this drag.
 Point getPoint()
          Gets the mouse coordinates
 
Methods inherited from class net.infonode.tabbedpanel.TabEvent
getTab
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TabDragEvent

public TabDragEvent(Object source,
                    Tab tab,
                    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 mouseEvent
tab - the Tab that is being dragged
point - the mouse coordinates relative to the Tab that is being dragged

TabDragEvent

public TabDragEvent(Object source,
                    MouseEvent mouseEvent)
Constructs a TabDragEvent

Parameters:
source - the Tab or TabbedPanel that is the source for this
mouseEvent - 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 Detail

getPoint

public Point getPoint()
Gets the mouse coordinates

Returns:
the mouse coordinats relative to the Tab that is beeing dragged

getMouseEvent

public 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


Copyright © 2007 NNL Technology AB. All Rights Reserved.