org.jdesktop.binding
Class TabularValueChangeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.jdesktop.binding.TabularValueChangeEvent
All Implemented Interfaces:
java.io.Serializable

public class TabularValueChangeEvent
extends java.util.EventObject

Event fired by TabularDataModel on cell updates. PENDING: how to handle adding/removing rows?

Author:
Jeanette Winzenburg
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
TabularValueChangeEvent(TabularDataModel source, int rowIndex, java.lang.String fieldName)
          Instantiates a change event for the cell given in rowIndex/fieldName coordinates.
 
Method Summary
 java.lang.String getFieldName()
          the column coordinate.
 int getRowIndex()
           
 
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

TabularValueChangeEvent

public TabularValueChangeEvent(TabularDataModel source,
                               int rowIndex,
                               java.lang.String fieldName)
Instantiates a change event for the cell given in rowIndex/fieldName coordinates.

Parameters:
source -
rowIndex - the row which is updated. -1 indicates all rows.
fieldName - the field which is updated. null indicates all fields.
Method Detail

getFieldName

public java.lang.String getFieldName()
the column coordinate.

Returns:
the column which is updated. null indicates all columns.

getRowIndex

public int getRowIndex()
Returns:
the rowIndex which is updated. -1 indicates all columns.


Copyright © 2005 Sun Microsystems All Rights Reserved.