Package ca.odell.glazedlists.swing
Class MutableTableModelEvent
- java.lang.Object
-
- java.util.EventObject
-
- javax.swing.event.TableModelEvent
-
- ca.odell.glazedlists.swing.MutableTableModelEvent
-
- All Implemented Interfaces:
java.io.Serializable
public final class MutableTableModelEvent extends javax.swing.event.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
-
-
Constructor Summary
Constructors Constructor Description MutableTableModelEvent(javax.swing.table.TableModel source)
Constructors simply call the same on the superclass.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
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.
-
-