< prev index next >

src/java.desktop/share/classes/javax/swing/table/AbstractTableModel.java

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


  33 /**
  34  *  This abstract class provides default implementations for most of
  35  *  the methods in the <code>TableModel</code> interface. It takes care of
  36  *  the management of listeners and provides some conveniences for generating
  37  *  <code>TableModelEvents</code> and dispatching them to the listeners.
  38  *  To create a concrete <code>TableModel</code> as a subclass of
  39  *  <code>AbstractTableModel</code> you need only provide implementations
  40  *  for the following three methods:
  41  *
  42  *  <pre>
  43  *  public int getRowCount();
  44  *  public int getColumnCount();
  45  *  public Object getValueAt(int row, int column);
  46  *  </pre>
  47  * <p>
  48  * <strong>Warning:</strong>
  49  * Serialized objects of this class will not be compatible with
  50  * future Swing releases. The current serialization support is
  51  * appropriate for short term storage or RMI between applications running
  52  * the same version of Swing.  As of 1.4, support for long term storage
  53  * of all JavaBeans&trade;
  54  * has been added to the <code>java.beans</code> package.
  55  * Please see {@link java.beans.XMLEncoder}.
  56  *
  57  * @author Alan Chung
  58  * @author Philip Milne
  59  */
  60 @SuppressWarnings("serial") // Same-version serialization only
  61 public abstract class AbstractTableModel implements TableModel, Serializable
  62 {
  63 //
  64 // Instance Variables
  65 //
  66 
  67     /** List of listeners */
  68     protected EventListenerList listenerList = new EventListenerList();
  69 
  70 //
  71 // Default Implementation of the Interface
  72 //
  73 




  33 /**
  34  *  This abstract class provides default implementations for most of
  35  *  the methods in the <code>TableModel</code> interface. It takes care of
  36  *  the management of listeners and provides some conveniences for generating
  37  *  <code>TableModelEvents</code> and dispatching them to the listeners.
  38  *  To create a concrete <code>TableModel</code> as a subclass of
  39  *  <code>AbstractTableModel</code> you need only provide implementations
  40  *  for the following three methods:
  41  *
  42  *  <pre>
  43  *  public int getRowCount();
  44  *  public int getColumnCount();
  45  *  public Object getValueAt(int row, int column);
  46  *  </pre>
  47  * <p>
  48  * <strong>Warning:</strong>
  49  * Serialized objects of this class will not be compatible with
  50  * future Swing releases. The current serialization support is
  51  * appropriate for short term storage or RMI between applications running
  52  * the same version of Swing.  As of 1.4, support for long term storage
  53  * of all JavaBeans
  54  * has been added to the <code>java.beans</code> package.
  55  * Please see {@link java.beans.XMLEncoder}.
  56  *
  57  * @author Alan Chung
  58  * @author Philip Milne
  59  */
  60 @SuppressWarnings("serial") // Same-version serialization only
  61 public abstract class AbstractTableModel implements TableModel, Serializable
  62 {
  63 //
  64 // Instance Variables
  65 //
  66 
  67     /** List of listeners */
  68     protected EventListenerList listenerList = new EventListenerList();
  69 
  70 //
  71 // Default Implementation of the Interface
  72 //
  73 


< prev index next >