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
-
DESELECTED
- Row was deselected.
-
SELECTED
- Row was selected.
-
UNKNOWN_COLUMN
- Column de/selected cannot be determined.
-
ListboxEvent(Component, int, int, int, int, int)
- Constructs a listbox event.
-
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).
-
getClickCount()
- Returns the click count.
-
getColumn()
- Returns the column of the row involved with the selection.
-
getModifiers()
- Returns the selection modifiers.
-
getRow()
- Returns the row involved with the selection.
-
getTime()
- Returns the time of the event.
Deprecated.
-
getWhen()
- Returns the time of the event.
-
getX()
- Returns the X coordinate of the event.
-
getY()
- Returns the Y coordinate of the event.
-
isAltDown()
- Returns whether alt key was pressed.
-
isControlDown()
- Returns whether control key was pressed.
-
isMetaDown()
- Returns whether meta key was pressed.
-
isShiftDown()
- Returns whether shift key was pressed.
-
toString()
- Returns a string representation of this event.
SELECTED
public static final int SELECTED
- Row was selected.
DESELECTED
public static final int DESELECTED
- Row was deselected.
UNKNOWN_COLUMN
public static final int UNKNOWN_COLUMN
- Column de/selected cannot be determined.
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
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.
getTime
public long getTime()
- Note: getTime() is deprecated.
Use getWhen() to match other AWT controls.
- Returns the time of the event.
getWhen
public long getWhen()
- Returns the time of the event.
getRow
public int getRow()
- Returns the row involved with the selection.
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
getModifiers
public int getModifiers()
- Returns the selection modifiers.
isAltDown
public boolean isAltDown()
- Returns whether alt key was pressed.
isControlDown
public boolean isControlDown()
- Returns whether control key was pressed.
isMetaDown
public boolean isMetaDown()
- Returns whether meta key was pressed.
isShiftDown
public boolean isShiftDown()
- Returns whether shift key was pressed.
getClickCount
public int getClickCount()
- Returns the click count.
getX
public int getX()
- Returns the X coordinate of the event.
getY
public int getY()
- Returns the Y coordinate of the event.
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