org.gudy.azureus2.plugins.ui.tables
Class TableRowMouseEvent

java.lang.Object
  extended by org.gudy.azureus2.plugins.ui.tables.TableRowMouseEvent
Direct Known Subclasses:
TableCellMouseEvent

public class TableRowMouseEvent
extends java.lang.Object

Author:
TuxPaper

Field Summary
 int button
          Which button was pressed.
 java.lang.Object data
          Misc data
static int EVENT_MOUSEDOUBLECLICK
          eventType is trigggered when mouse is double clicked
static int EVENT_MOUSEDOWN
          eventType is triggered when mouse is pressed down
static int EVENT_MOUSEENTER
           
static int EVENT_MOUSEEXIT
           
static int EVENT_MOUSEMOVE
          eventType is triggered when the mouse is moved.
static int EVENT_MOUSEUP
          eventType is triggered when mouse is let go
 int eventType
          EVENT_* constant specifying the type of event that has been triggered
 int keyboardState
          Keyboard state when the mouse event was triggered.
 TableRow row
          TableRow that the mouse trigger applies to
 boolean skipCoreFunctionality
          Setting this value to true will prevent Azureus from running its core functionality (if any) for the mouse event.
 int x
          x position of mouse relative to table cell
 int y
          y position of mouse relative to table cell
 
Constructor Summary
TableRowMouseEvent()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EVENT_MOUSEDOWN

public static final int EVENT_MOUSEDOWN
eventType is triggered when mouse is pressed down

Since:
2.3.0.7
See Also:
Constant Field Values

EVENT_MOUSEUP

public static final int EVENT_MOUSEUP
eventType is triggered when mouse is let go

Since:
2.3.0.7
See Also:
Constant Field Values

EVENT_MOUSEDOUBLECLICK

public static final int EVENT_MOUSEDOUBLECLICK
eventType is trigggered when mouse is double clicked

Since:
2.3.0.7
See Also:
Constant Field Values

EVENT_MOUSEMOVE

public static final int EVENT_MOUSEMOVE
eventType is triggered when the mouse is moved. ONLY fires for listeners with subclass of TableMouseMoveListener. TableCellMouseListener will not recieve mouse move events.

See Also:
Constant Field Values

EVENT_MOUSEENTER

public static final int EVENT_MOUSEENTER
See Also:
Constant Field Values

EVENT_MOUSEEXIT

public static final int EVENT_MOUSEEXIT
See Also:
Constant Field Values

eventType

public int eventType
EVENT_* constant specifying the type of event that has been triggered

Since:
2.3.0.7

x

public int x
x position of mouse relative to table cell

Since:
2.3.0.7

y

public int y
y position of mouse relative to table cell


button

public int button
Which button was pressed. 1 = first button (left), 2 = second button (middle), 3 = third button (right)

More buttons may already be pressed down.

For events of type EVENT_MOUSEMOVE, button will be 0

Since:
2.3.0.7

keyboardState

public int keyboardState
Keyboard state when the mouse event was triggered.

Since:
2.3.0.7

skipCoreFunctionality

public boolean skipCoreFunctionality
Setting this value to true will prevent Azureus from running its core functionality (if any) for the mouse event. For example, by default the double click in My Torrents goes to the details view. If your plugin remaps double click to do a different function, set skipCoreFunctionality = true.


data

public java.lang.Object data
Misc data

Since:
3.0.1.7

row

public TableRow row
TableRow that the mouse trigger applies to

Since:
3.0.1.6
Constructor Detail

TableRowMouseEvent

public TableRowMouseEvent()