ComponentAdapter { public Class<?> getColumnClass(int column) { return Object.class; } ComponentAdapter(JComponent component); JComponent getComponent(); String getColumnName(int columnIndex); Object getColumnIdentifierAt(int columnIndex); int getColumnIndex(Object identifier); boolean isTestable(int column); Class<?> getColumnClass(int column); Class<?> getColumnClass(); int getColumnCount(); int getRowCount(); abstract Object getValueAt(int row, int column); abstract boolean isCellEditable(int row, int column); String getString(); String getString(int modelColumnIndex); String getFilteredStringAt(int row, int column); String getStringAt(int row, int column); Object getValue(); Object getValue(int modelColumnIndex); Object getFilteredValueAt(int row, int column); Rectangle getCellBounds(); abstract boolean hasFocus(); abstract boolean isSelected(); abstract boolean isEditable(); boolean isExpanded(); boolean isLeaf(); boolean isHierarchical(); int getDepth(); int convertColumnIndexToView(int columnModelIndex); int convertColumnIndexToModel(int columnViewIndex); int convertRowIndexToView(int rowModelIndex); int convertRowIndexToModel(int rowViewIndex); static final Object DEFAULT_COLUMN_IDENTIFIER; public int row; public int column; }
@Test public void testColumnClass() { JXListT list = new JXListT(new Object[] {"one"}); ComponentAdapter adapter = list.getComponentAdapter(0); assertEquals(Object.class, adapter.getColumnClass()); }