All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class COM.taligent.widget.event.ListboxEvent

java.lang.Object
   |
   +----java.util.EventObject
           |
           +----java.awt.AWTEvent
                   |
                   +----COM.taligent.widget.event.ListboxEvent

public class ListboxEvent
extends AWTEvent
Listbox event. This event notifies all listeners of the type of selection (select and deselect), and the row and column of the selection.

Version:
1.1
Author:
Andy Clark, Taligent Inc.
See Also:
MultiColumnListbox, ListboxListener

Variable Index

 o DESELECTED
Row was deselected.
 o SELECTED
Row was selected.
 o UNKNOWN_COLUMN
Column de/selected cannot be determined.

Constructor Index

 o ListboxEvent(Component, int, int, int, int, int)
Constructs a listbox event.
 o ListboxEvent(Component, int, int, int, int, int, int, int)
Constructs a listbox event as well as setting the (x,y) coordinates within the element at (row,col).

Method Index

 o getClickCount()
Returns the click count.
 o getColumn()
Returns the column of the row involved with the selection.
 o getModifiers()
Returns the selection modifiers.
 o getRow()
Returns the row involved with the selection.
 o getTime()
Returns the time of the event. Deprecated.
 o getWhen()
Returns the time of the event.
 o getX()
Returns the X coordinate of the event.
 o getY()
Returns the Y coordinate of the event.
 o isAltDown()
Returns whether alt key was pressed.
 o isControlDown()
Returns whether control key was pressed.
 o isMetaDown()
Returns whether meta key was pressed.
 o isShiftDown()
Returns whether shift key was pressed.
 o toString()
Returns a string representation of this event.

Variables

 o SELECTED
 public static final int SELECTED
Row was selected.

 o DESELECTED
 public static final int DESELECTED
Row was deselected.

 o UNKNOWN_COLUMN
 public static final int UNKNOWN_COLUMN
Column de/selected cannot be determined.

Constructors

 o ListboxEvent
 public ListboxEvent(Component source,
                     int type,
                     int row,
                     int col,
                     int clicks,
                     int mods)
Constructs a listbox event.

Parameters:
source - The source of the event.
type - The type of listbox event to created.
row - The row selected/deselected.
col - The column of the row selected.
clicks - Mouse click count.
mods - Click modifiers (e.g. InputEvent.SHIFT_MASK).
See Also:
SELECTED, DESELECTED, UNKNOWN_COLUMN
 o ListboxEvent
 public ListboxEvent(Component source,
                     int type,
                     int row,
                     int col,
                     int clicks,
                     int mods,
                     int x,
                     int y)
Constructs a listbox event as well as setting the (x,y) coordinates within the element at (row,col).

Parameters:
source - The source of the event.
type - The type of listbox event to created.
row - The row selected/deselected.
col - The column of the row selected.
clicks - Mouse click count.
mods - Click modifiers (e.g. InputEvent.SHIFT_MASK).
x - The X coordinate within the element.
y - The Y coordinate within the element.

Methods

 o getTime
 public long getTime()
Note: getTime() is deprecated. Use getWhen() to match other AWT controls.

Returns the time of the event.

 o getWhen
 public long getWhen()
Returns the time of the event.

 o getRow
 public int getRow()
Returns the row involved with the selection.

 o getColumn
 public int getColumn()
Returns the column of the row involved with the selection. If the column cannot be determined for the event, then the return value may equal ListboxEvent.UNKNOWN_COLUMN.

See Also:
UNKNOWN_COLUMN
 o getModifiers
 public int getModifiers()
Returns the selection modifiers.

 o isAltDown
 public boolean isAltDown()
Returns whether alt key was pressed.

 o isControlDown
 public boolean isControlDown()
Returns whether control key was pressed.

 o isMetaDown
 public boolean isMetaDown()
Returns whether meta key was pressed.

 o isShiftDown
 public boolean isShiftDown()
Returns whether shift key was pressed.

 o getClickCount
 public int getClickCount()
Returns the click count.

 o getX
 public int getX()
Returns the X coordinate of the event.

 o getY
 public int getY()
Returns the Y coordinate of the event.

 o toString
 public String toString()
Returns a string representation of this event.

Overrides:
toString in class AWTEvent

All Packages  Class Hierarchy  This Package  Previous  Next  Index