< prev index next >

src/java.desktop/share/classes/javax/swing/event/TableModelEvent.java

Print this page

        

*** 56,66 **** * Serialized objects of this class will not be compatible with * future Swing releases. The current serialization support is * appropriate for short term storage or RMI between applications running * the same version of Swing. As of 1.4, support for long term storage * of all JavaBeans&trade; ! * has been added to the <code>java.beans</code> package. * Please see {@link java.beans.XMLEncoder}. * * @author Alan Chung * @author Philip Milne * @see TableModel --- 56,66 ---- * Serialized objects of this class will not be compatible with * future Swing releases. The current serialization support is * appropriate for short term storage or RMI between applications running * the same version of Swing. As of 1.4, support for long term storage * of all JavaBeans&trade; ! * has been added to the {@code java.beans} package. * Please see {@link java.beans.XMLEncoder}. * * @author Alan Chung * @author Philip Milne * @see TableModel
*** 106,118 **** // Constructors // /** * All row data in the table has changed, listeners should discard any state ! * that was based on the rows and requery the <code>TableModel</code> * to get the new row count and all the appropriate values. ! * The <code>JTable</code> will repaint the entire visible region on * receiving this event, querying the model for the cell values that are visible. * The structure of the table ie, the column names, types and order * have not changed. * * @param source the {@code TableModel} affected by this event --- 106,118 ---- // Constructors // /** * All row data in the table has changed, listeners should discard any state ! * that was based on the rows and requery the {@code TableModel} * to get the new row count and all the appropriate values. ! * The {@code JTable} will repaint the entire visible region on * receiving this event, querying the model for the cell values that are visible. * The structure of the table ie, the column names, types and order * have not changed. * * @param source the {@code TableModel} affected by this event
*** 123,138 **** } /** * This row of data has been updated. * To denote the arrival of a completely new table with a different structure ! * use <code>HEADER_ROW</code> as the value for the <code>row</code>. ! * When the <code>JTable</code> receives this event and its ! * <code>autoCreateColumnsFromModel</code> * flag is set it discards any TableColumns that it had and reallocates * default ones in the order they appear in the model. This is the ! * same as calling <code>setModel(TableModel)</code> on the <code>JTable</code>. * * @param source the {@code TableModel} affected by this event * @param row the row which has been updated */ public TableModelEvent(TableModel source, int row) { --- 123,138 ---- } /** * This row of data has been updated. * To denote the arrival of a completely new table with a different structure ! * use {@code HEADER_ROW} as the value for the {@code row}. ! * When the {@code JTable} receives this event and its ! * {@code autoCreateColumnsFromModel} * flag is set it discards any TableColumns that it had and reallocates * default ones in the order they appear in the model. This is the ! * same as calling {@code setModel(TableModel)} on the {@code JTable}. * * @param source the {@code TableModel} affected by this event * @param row the row which has been updated */ public TableModelEvent(TableModel source, int row) {
< prev index next >