WUI : API


org.westofj.wui.table
Class WTableSelectionEvent

java.lang.Object
  extended byorg.westofj.wui.WEvent
      extended byorg.westofj.wui.table.WTableSelectionEvent

public final class WTableSelectionEvent
extends WEvent

An object capturing that a table selection event has occurred. Table selection events occur when an item in a table is selected or unselected. When an event occurs, the event is captured in an instance of this class. The table then invokes its listeners, passing the selection event instance to the appropriate method.

Version:
$Revision: 1.2 $, $Date: 2003/08/30 03:53:51 $
Author:
bill

Field Summary
static int SELECT
           
static int UNSELECT
           
 
Constructor Summary
WTableSelectionEvent(WTable table, WTableColumn column, int row, int event)
          Constructs a selection event.
 
Method Summary
protected  void fire()
          Fires the event.
 WTableColumn getColumn()
          Returns the column the event applies to.
 int getEvent()
          Returns the type of event.
 int getRow()
          Returns the row the event applies to.
 WTable getTable()
          Returns the source of the event.
 
Methods inherited from class org.westofj.wui.WEvent
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SELECT

public static final int SELECT
See Also:
Constant Field Values

UNSELECT

public static final int UNSELECT
See Also:
Constant Field Values
Constructor Detail

WTableSelectionEvent

public WTableSelectionEvent(WTable table,
                            WTableColumn column,
                            int row,
                            int event)
Constructs a selection event.

Parameters:
table - the source table of the event.
column - the column of the event.
row - the row of the event.
event - the type of event.
Method Detail

getColumn

public WTableColumn getColumn()
Returns the column the event applies to.

Returns:
WTableColumn the column the event applies to.

getEvent

public int getEvent()
Returns the type of event.

Returns:
int the type of event.

getRow

public int getRow()
Returns the row the event applies to.

Returns:
int the row the event applies to.

getTable

public WTable getTable()
Returns the source of the event.

Returns:
WTable the source of the event.

fire

protected void fire()
Description copied from class: WEvent
Fires the event. This method should not be called by the user, but rather by the framework.

Specified by:
fire in class WEvent

Copyright (c) 2003 West of J - All rights reserved.