JIDE 3.5.15

com.jidesoft.grid
Class SpanModelEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.jidesoft.grid.SpanModelEvent
All Implemented Interfaces:
Serializable

public class SpanModelEvent
extends EventObject

See Also:
Serialized Form

Field Summary
protected  CellSpan _cellSpan
           
protected  int _type
           
static int ADD
          Identifies the addition of a new span.
static int REMOVE
          Identifies the removal of a span.
static int UPDATE
          Identifies the update of a span.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
SpanModelEvent(SpanModel source)
          All spans in the table has changed, listeners should discard any state that was based on the cell span and re-query the SpanModel to get the new cell span and repaint the whole table.
SpanModelEvent(SpanModel source, CellSpan cellSpan, int type)
           
 
Method Summary
 CellSpan getCellSpan()
          Gets the cell span.
 int getType()
          Returns the type of event - one of: INSERT, UPDATE and DELETE.
 
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

ADD

public static final int ADD
Identifies the addition of a new span.

See Also:
Constant Field Values

REMOVE

public static final int REMOVE
Identifies the removal of a span.

See Also:
Constant Field Values

UPDATE

public static final int UPDATE
Identifies the update of a span.

See Also:
Constant Field Values

_type

protected int _type

_cellSpan

protected CellSpan _cellSpan
Constructor Detail

SpanModelEvent

public SpanModelEvent(SpanModel source)
All spans in the table has changed, listeners should discard any state that was based on the cell span and re-query the SpanModel to get the new cell span and repaint the whole table. The JTable will repaint the entire visible region on receiving this event, querying the model for the cell spans that are visible. The structure of the table, i.e., the column names, types and order have not changed.

Parameters:
source - the source

SpanModelEvent

public SpanModelEvent(SpanModel source,
                      CellSpan cellSpan,
                      int type)
Method Detail

getCellSpan

public CellSpan getCellSpan()
Gets the cell span.

Returns:
the cell span. It could be null, meaning all cell spans have been changed.

getType

public int getType()
Returns the type of event - one of: INSERT, UPDATE and DELETE.

Returns:
the type.

JIDE 3.5.15