jdbreport.model.event
Class TableRowModelEvent

java.lang.Object
  extended by java.util.EventObject
      extended by jdbreport.model.event.TableRowModelEvent
All Implemented Interfaces:
Serializable

public class TableRowModelEvent
extends EventObject

Version:
1.1 03/09/08
Author:
Andrey Kholmanskih
See Also:
Serialized Form

Field Summary
protected  int fromIndex
          The index of the row from where it was moved or removed
protected  int toIndex
          The index of the row to where it was moved or added from
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
TableRowModelEvent(TableRowModel source, int from, int to)
          Constructs a TableRowModelEvent object.
TableRowModelEvent(TableRowModel source, int from, int to, boolean draging)
          Constructs a TableRowModelEvent object.
 
Method Summary
 int getFromIndex()
          Returns the fromIndex.
 int getToIndex()
          Returns the toIndex.
 boolean isDraging()
           
 
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

fromIndex

protected int fromIndex
The index of the row from where it was moved or removed


toIndex

protected int toIndex
The index of the row to where it was moved or added from

Constructor Detail

TableRowModelEvent

public TableRowModelEvent(TableRowModel source,
                          int from,
                          int to)
Constructs a TableRowModelEvent object.

Parameters:
source - the TableRowModel that originated the event (typically this)
from - an int specifying the first row in a range of affected rows
to - an int specifying the last row in a range of affected rows

TableRowModelEvent

public TableRowModelEvent(TableRowModel source,
                          int from,
                          int to,
                          boolean draging)
Constructs a TableRowModelEvent object.

Parameters:
source - the TableRowModel that originated the event (typically this)
from - an int specifying the first row in a range of affected rows
to - an int specifying the last row in a range of affected rows
draging -
Method Detail

getFromIndex

public int getFromIndex()
Returns the fromIndex. Valid for removed or moved events


getToIndex

public int getToIndex()
Returns the toIndex. Valid for add and moved events


isDraging

public boolean isDraging()