net.sf.jeppers.grid
Class SpanModelEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--net.sf.jeppers.grid.SpanModelEvent
All Implemented Interfaces:
Serializable

public class SpanModelEvent
extends EventObject

Author:
Cameron Zemek
See Also:
Serialized Form

Field Summary
static int MODEL_CHANGED
          The entire model was changed
static int SPAN_ADDED
           
static int SPAN_REMOVED
           
static int SPAN_UPDATED
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
SpanModelEvent(SpanModel source, int type, int anchorRow, int anchorColumn, int oldRowCount, int oldColumnCount, int newRowCount, int newColumnCount)
          Constructs a new event for a change to a SpanModel
 
Method Summary
 int getAnchorColumn()
          Returns the anchor (leftmost) column of the span
 int getAnchorRow()
          Returns the anchor (top) row of the span event
 int getNewColumnCount()
          Valid for SPAN_UPDATED and SPAN_ADDED events
 int getNewRowCount()
          Valid for SPAN_UPDATED and SPAN_ADDED events
 int getOldColumnCount()
          Valid for SPAN_UPDATED and SPAN_REMOVED events
 int getOldRowCount()
          Valid for SPAN_UPDATED and SPAN_REMOVED events
 int getType()
          Returns the type of 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
 

Field Detail

MODEL_CHANGED

public static int MODEL_CHANGED
The entire model was changed


SPAN_ADDED

public static int SPAN_ADDED

SPAN_REMOVED

public static int SPAN_REMOVED

SPAN_UPDATED

public static int SPAN_UPDATED
Constructor Detail

SpanModelEvent

public SpanModelEvent(SpanModel source,
                      int type,
                      int anchorRow,
                      int anchorColumn,
                      int oldRowCount,
                      int oldColumnCount,
                      int newRowCount,
                      int newColumnCount)
Constructs a new event for a change to a SpanModel

Method Detail

getAnchorRow

public int getAnchorRow()
Returns the anchor (top) row of the span event


getAnchorColumn

public int getAnchorColumn()
Returns the anchor (leftmost) column of the span


getOldRowCount

public int getOldRowCount()
Valid for SPAN_UPDATED and SPAN_REMOVED events


getOldColumnCount

public int getOldColumnCount()
Valid for SPAN_UPDATED and SPAN_REMOVED events


getNewRowCount

public int getNewRowCount()
Valid for SPAN_UPDATED and SPAN_ADDED events


getNewColumnCount

public int getNewColumnCount()
Valid for SPAN_UPDATED and SPAN_ADDED events


getType

public int getType()
Returns the type of the event