< prev index next >

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

Print this page
rev 60127 : 8249205: Remove unnecessary trademark symbols


  40  * TableModelEvent(source);              //  The data, ie. all rows changed
  41  * TableModelEvent(source, HEADER_ROW);  //  Structure change, reallocate TableColumns
  42  * TableModelEvent(source, 1);           //  Row 1 changed
  43  * TableModelEvent(source, 3, 6);        //  Rows 3 to 6 inclusive changed
  44  * TableModelEvent(source, 2, 2, 6);     //  Cell at (2, 6) changed
  45  * TableModelEvent(source, 3, 6, ALL_COLUMNS, INSERT); // Rows (3, 6) were inserted
  46  * TableModelEvent(source, 3, 6, ALL_COLUMNS, DELETE); // Rows (3, 6) were deleted
  47  * </pre>
  48  *
  49  * It is possible to use other combinations of the parameters, not all of them
  50  * are meaningful. By subclassing, you can add other information, for example:
  51  * whether the event WILL happen or DID happen. This makes the specification
  52  * of rows in DELETE events more useful but has not been included in
  53  * the swing package as the JTable only needs post-event notification.
  54  * <p>
  55  * <strong>Warning:</strong>
  56  * Serialized objects of this class will not be compatible with
  57  * future Swing releases. The current serialization support is
  58  * appropriate for short term storage or RMI between applications running
  59  * the same version of Swing.  As of 1.4, support for long term storage
  60  * of all JavaBeans&trade;
  61  * has been added to the <code>java.beans</code> package.
  62  * Please see {@link java.beans.XMLEncoder}.
  63  *
  64  * @author Alan Chung
  65  * @author Philip Milne
  66  * @see TableModel
  67  */
  68 @SuppressWarnings("serial") // Same-version serialization only
  69 public class TableModelEvent extends java.util.EventObject
  70 {
  71     /** Identifies the addition of new rows or columns. */
  72     public static final int INSERT =  1;
  73     /** Identifies a change to existing data. */
  74     public static final int UPDATE =  0;
  75     /** Identifies the removal of rows or columns. */
  76     public static final int DELETE = -1;
  77 
  78     /** Identifies the header row. */
  79     public static final int HEADER_ROW = -1;
  80 




  40  * TableModelEvent(source);              //  The data, ie. all rows changed
  41  * TableModelEvent(source, HEADER_ROW);  //  Structure change, reallocate TableColumns
  42  * TableModelEvent(source, 1);           //  Row 1 changed
  43  * TableModelEvent(source, 3, 6);        //  Rows 3 to 6 inclusive changed
  44  * TableModelEvent(source, 2, 2, 6);     //  Cell at (2, 6) changed
  45  * TableModelEvent(source, 3, 6, ALL_COLUMNS, INSERT); // Rows (3, 6) were inserted
  46  * TableModelEvent(source, 3, 6, ALL_COLUMNS, DELETE); // Rows (3, 6) were deleted
  47  * </pre>
  48  *
  49  * It is possible to use other combinations of the parameters, not all of them
  50  * are meaningful. By subclassing, you can add other information, for example:
  51  * whether the event WILL happen or DID happen. This makes the specification
  52  * of rows in DELETE events more useful but has not been included in
  53  * the swing package as the JTable only needs post-event notification.
  54  * <p>
  55  * <strong>Warning:</strong>
  56  * Serialized objects of this class will not be compatible with
  57  * future Swing releases. The current serialization support is
  58  * appropriate for short term storage or RMI between applications running
  59  * the same version of Swing.  As of 1.4, support for long term storage
  60  * of all JavaBeans
  61  * has been added to the <code>java.beans</code> package.
  62  * Please see {@link java.beans.XMLEncoder}.
  63  *
  64  * @author Alan Chung
  65  * @author Philip Milne
  66  * @see TableModel
  67  */
  68 @SuppressWarnings("serial") // Same-version serialization only
  69 public class TableModelEvent extends java.util.EventObject
  70 {
  71     /** Identifies the addition of new rows or columns. */
  72     public static final int INSERT =  1;
  73     /** Identifies a change to existing data. */
  74     public static final int UPDATE =  0;
  75     /** Identifies the removal of rows or columns. */
  76     public static final int DELETE = -1;
  77 
  78     /** Identifies the header row. */
  79     public static final int HEADER_ROW = -1;
  80 


< prev index next >