com.arsdigita.bebop.event
Class TableActionEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bycom.arsdigita.bebop.event.PageEvent
          extended bycom.arsdigita.bebop.event.ActionEvent
              extended bycom.arsdigita.bebop.event.TableActionEvent
All Implemented Interfaces:
Serializable

public class TableActionEvent
extends ActionEvent

An event for the Table component. Table will fire this event when one of its active cells receives a click.

Version:
$Id: //core-platform/dev/src/com/arsdigita/bebop/event/TableActionEvent.java#8 $
Author:
David Lutterkort
See Also:
TableActionListener, TableActionAdapter, Serialized Form

Field Summary
static String versionId
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
TableActionEvent(Component source, PageState s, Object rowKey)
          Construct a TableActionEvent for a click on a particular row.
TableActionEvent(Component source, PageState s, Object rowKey, Integer column)
          Construct a TableActionEvent for a click on a particular row and a particular column.
 
Method Summary
 Integer getColumn()
          Get the index of the column that received the click.
 Object getRowKey()
          Get the key for the row that received the click.
 
Methods inherited from class com.arsdigita.bebop.event.PageEvent
getPageState
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Constructor Detail

TableActionEvent

public TableActionEvent(Component source,
                        PageState s,
                        Object rowKey,
                        Integer column)
Construct a TableActionEvent for a click on a particular row and a particular column.

Parameters:
source - the Component generating the event.
s - the state for the current request.
rowKey - the key for the row where the click was registered.
column - the index of the column where the click was registered.

TableActionEvent

public TableActionEvent(Component source,
                        PageState s,
                        Object rowKey)
Construct a TableActionEvent for a click on a particular row.

Parameters:
source - the Component generating the event.
s - the state for the current request.
rowKey - the key for the row where the click was registered.
Method Detail

getRowKey

public final Object getRowKey()
Get the key for the row that received the click.

Returns:
the key for the row that received the click.

getColumn

public final Integer getColumn()
Get the index of the column that received the click.

Returns:
the index of the column that received the click.


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC