/[classpath]/classpath/javax/swing/JTable.java
ViewVC logotype

Diff of /classpath/javax/swing/JTable.java

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

revision 1.18 by mkoch, Wed Dec 22 19:30:45 2004 UTC revision 1.19 by mkoch, Thu Dec 30 19:07:20 2004 UTC
# Line 42  import java.awt.Color; Line 42  import java.awt.Color;
42  import java.awt.Component;  import java.awt.Component;
43  import java.awt.Dimension;  import java.awt.Dimension;
44  import java.awt.Rectangle;  import java.awt.Rectangle;
 import java.util.Date;  
45  import java.util.Hashtable;  import java.util.Hashtable;
46  import java.util.Vector;  import java.util.Vector;
47    
# Line 788  public class JTable extends JComponent Line 787  public class JTable extends JComponent
787            
788      return renderer.getTableCellRendererComponent(this,      return renderer.getTableCellRendererComponent(this,
789                                                    dataModel.getValueAt(row,                                                    dataModel.getValueAt(row,
790                                                                         convertColumnIndexToView(column)),                                                                         convertColumnIndexToModel(column)),
791                                                    isSelected,                                                    isSelected,
792                                                    false, // hasFocus                                                    false, // hasFocus
793                                                    row, column);                                                    row, column);
# Line 867  public class JTable extends JComponent Line 866  public class JTable extends JComponent
866    
867    /**    /**
868     * Get the value of the {@link #columnCount} property by     * Get the value of the {@link #columnCount} property by
869     * delegation to the @{link #dataModel} field.     * delegation to the @{link #columnModel} field.
870     *     *
871     * @return The current value of the columnCount property     * @return The current value of the columnCount property
872     */     */
873    public int getColumnCount()    public int getColumnCount()
874    {    {
875      return dataModel.getColumnCount();      return columnModel.getColumnCount();    
876    }    }
877    
878    /**    /**
# Line 1131  public class JTable extends JComponent Line 1130  public class JTable extends JComponent
1130      return tableHeader;      return tableHeader;
1131    }    }
1132    
1133      /**
1134       * Removes specified column from displayable columns of this table.
1135       *
1136       * @param column column to removed
1137       */
1138    public void removeColumn(TableColumn column)    public void removeColumn(TableColumn column)
1139      {    
1140        columnModel.removeColumn(column);
1141      }
1142    
1143      /**
1144       * Moves column at the specified index to new given location.
1145       *
1146       * @param column index of the column to move
1147       * @param targetColumn index specifying new location of the column
1148       */
1149      public void moveColumn(int column,int targetColumn)
1150    {    {
1151      // FIXME: Implement me.      columnModel.moveColumn(column, targetColumn);
     throw new Error("not implemented");  
1152    }    }
1153    
1154    /**    /**
# Line 1166  public class JTable extends JComponent Line 1180  public class JTable extends JComponent
1180     */     */
1181    public void setRowHeight(int r)    public void setRowHeight(int r)
1182    {    {
1183        if (rowHeight < 1)
1184          throw new IllegalArgumentException();
1185        
1186      rowHeight = r;      rowHeight = r;
1187      revalidate();      revalidate();
1188      repaint();      repaint();

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

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