DESY ACOP Beans Home

de.desy.acop.displayers.table
Class TableColumnEvent

java.lang.Object
  extended by java.util.EventObject
      extended by de.desy.acop.displayers.table.TableColumnEvent
All Implemented Interfaces:
java.io.Serializable

public class TableColumnEvent
extends java.util.EventObject

TableColumnEvent is an event triggered by AcopTableColumn and notifies the listeners that there has been a change in the data of the column.

Version:
$Id: Templates.xml,v 1.10 2004/01/13 16:17:13 jbobnar Exp $
Author:
Jaka Bobnar
See Also:
TableColumnListener, AcopTableColumn, Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
TableColumnEvent(AcopTableColumn source)
          Constructs new TableColumnEvent.
TableColumnEvent(AcopTableColumn source, int rowIndex)
          Constructs new TableColumnEvent.
 
Method Summary
 AcopTableColumn getColumn()
          Returns the column that was the source of the event.
 int getRowIndex()
          Returns the index of the row, which triggered the event.
 
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
 

Constructor Detail

TableColumnEvent

public TableColumnEvent(AcopTableColumn source)
Constructs new TableColumnEvent.

Parameters:
source - the source column

TableColumnEvent

public TableColumnEvent(AcopTableColumn source,
                        int rowIndex)
Constructs new TableColumnEvent.

Parameters:
source - the source column
rowIndex - index of the row which changed
Method Detail

getRowIndex

public int getRowIndex()
Returns the index of the row, which triggered the event. If returned value is -1, the change had an effect on all rows.

Returns:
the row index

getColumn

public AcopTableColumn getColumn()
Returns the column that was the source of the event.

Returns:
the source


Copyright © 2010. All Rights Reserved.