Class 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
    • 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

      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.
      • 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​(javax.swing.table.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.