/[classpath]/classpath/javax/swing/table/TableModel.java
ViewVC logotype

Diff of /classpath/javax/swing/table/TableModel.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by mkoch, Sun Oct 12 16:48:34 2003 UTC revision 1.4 by mark, Thu Jul 22 19:45:39 2004 UTC
# Line 37  exception statement from your version. * Line 37  exception statement from your version. *
37    
38  package javax.swing.table;  package javax.swing.table;
39    
 // Imports  
40  import javax.swing.event.TableModelListener;  import javax.swing.event.TableModelListener;
41    
42    
43  /**  /**
44   * TableModel public interface   * TableModel public interface
45   * @author Andrew Selkirk   * @author Andrew Selkirk
46   */   */
47  public interface TableModel {  public interface TableModel
48    {
49          /**          /**
50           * getRowCount           * getRowCount
51           * @returns row count     * @return row count
52           */           */
53          int getRowCount();          int getRowCount();
54    
55          /**          /**
56           * getColumnCount           * getColumnCount
57           * @returns column count     * @return column count
58           */           */
59          int getColumnCount();          int getColumnCount();
60    
61          /**          /**
62           * getColumnName           * getColumnName
63           * @param columnIndex Column index           * @param columnIndex Column index
64           * @returns Column name     * @return Column name
65           */           */
66          String getColumnName(int columnIndex);          String getColumnName(int columnIndex);
67    
68          /**          /**
69           * getColumnClass           * getColumnClass
70           * @param columnIndex Column index           * @param columnIndex Column index
71           * @returns Column class     * @return Column class
72           */           */
73          Class getColumnClass(int columnIndex);          Class getColumnClass(int columnIndex);
74    
# Line 76  public interface TableModel { Line 76  public interface TableModel {
76           * isCellEditable           * isCellEditable
77           * @param rowIndex Row index           * @param rowIndex Row index
78           * @param columnIndex Column index           * @param columnIndex Column index
79           * @returns true if editable, false otherwise     * @return true if editable, false otherwise
80           */           */
81          boolean isCellEditable(int rowIndex, int columnIndex);          boolean isCellEditable(int rowIndex, int columnIndex);
82    
# Line 84  public interface TableModel { Line 84  public interface TableModel {
84           * getValueAt           * getValueAt
85           * @param rowIndex Row index           * @param rowIndex Row index
86           * @param columnIndex Column index           * @param columnIndex Column index
87           * @returns Value at specified indices     * @return Value at specified indices
88           */           */
89          Object getValueAt(int rowIndex, int columnIndex);          Object getValueAt(int rowIndex, int columnIndex);
90    
# Line 107  public interface TableModel { Line 107  public interface TableModel {
107           * @param listener TableModelListener           * @param listener TableModelListener
108           */           */
109          void removeTableModelListener(TableModelListener listener);          void removeTableModelListener(TableModelListener listener);
110    }
   
 } // TableModel  

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26