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 |
|
|
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); |
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 |
/** |
/** |
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 |
/** |
/** |
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(); |