ca.odell.glazedlists.swing
Class MutableTableModelEvent

java.lang.Object
  extended by java.util.EventObject
      extended by javax.swing.event.TableModelEvent
          extended by ca.odell.glazedlists.swing.MutableTableModelEvent
All Implemented Interfaces:
Serializable

public final class MutableTableModelEvent
extends TableModelEvent

A frequently changing table or a table that changes in several places simultaneously will cause several TableModelEvents to be created. This hurts speed. This is a mutable table model event, so that the object can be recycled.

Author:
Jesse Wilson
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.event.TableModelEvent
ALL_COLUMNS, column, DELETE, firstRow, HEADER_ROW, INSERT, lastRow, type, UPDATE
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
MutableTableModelEvent(TableModel source)
          Constructors simply call the same on the superclass.
 
Method Summary
 void setAllDataChanged()
          Sets the table model event to notify that all table data has changed.
 void setRange(int firstRow, int lastRow)
          Changes this table model event.
 void setStructureChanged()
          Sets the table model event to notify that the table structure has changed.
 void setType(int type)
           
 void setValues(int startIndex, int endIndex, int listChangeType)
          Sets the table model event to reflect the specified changes.
 
Methods inherited from class javax.swing.event.TableModelEvent
getColumn, getFirstRow, getLastRow, getType
 
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

MutableTableModelEvent

public MutableTableModelEvent(TableModel source)
Constructors simply call the same on the superclass.

Method Detail

setRange

public void setRange(int firstRow,
                     int lastRow)
Changes this table model event. The event must not be changed while it is being viewed by a listener.


setType

public void setType(int type)

setStructureChanged

public void setStructureChanged()
Sets the table model event to notify that the table structure has changed.


setAllDataChanged

public void setAllDataChanged()
Sets the table model event to notify that all table data has changed.


setValues

public void setValues(int startIndex,
                      int endIndex,
                      int listChangeType)
Sets the table model event to reflect the specified changes.



Glazed Lists, Copyright © 2003 publicobject.com, O'Dell Engineering.
Documentation build by hbrands at 2015-02-16 14:02