org.fife.ui.modifiabletable
Class ModifiableTableChangeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.fife.ui.modifiabletable.ModifiableTableChangeEvent
All Implemented Interfaces:
java.io.Serializable

public class ModifiableTableChangeEvent
extends java.util.EventObject

An event representing the addition, removal or modification of a row in a ModifiableTable.

Version:
1.0
Author:
Robert Futrell
See Also:
Serialized Form

Field Summary
static int ADDED
           
static int MODIFIED
           
static int REMOVED
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ModifiableTableChangeEvent(ModifiableTable source, int change, int row)
          Constructor.
 
Method Summary
 int getChange()
          Returns the change that occurred.
 ModifiableTable getModifiableTable()
          Returns the modifiable table that has changed.
 int getRow()
          Returns the row that was added, removed or modified.
 
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

ADDED

public static final int ADDED
See Also:
Constant Field Values

MODIFIED

public static final int MODIFIED
See Also:
Constant Field Values

REMOVED

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

ModifiableTableChangeEvent

public ModifiableTableChangeEvent(ModifiableTable source,
                                  int change,
                                  int row)
Constructor.

Parameters:
source - The table that changed.
change - One of ADDED, MODIFIED or REMOVED.
row - The row that was added, modified or removed.
Method Detail

getChange

public int getChange()
Returns the change that occurred.

Returns:
One of ADDED, MODIFIED or REMOVED.

getModifiableTable

public ModifiableTable getModifiableTable()
Returns the modifiable table that has changed.

Returns:
The modifiable table.

getRow

public int getRow()
Returns the row that was added, removed or modified.

Returns:
The row number.