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.

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.

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.
 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

Methods

 o getTime
 public long getTime()
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 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