1 package com.loribel.commons.abstraction; 2 3 import javax.swing.*; 4 import javax.swing.table.*; 5 6 /*** 7 * Decorator to build a table row. 8 * 9 * @author Gregory Borelli 10 */ 11 public interface GB_RowDecorator 12 { 13 int getColumnCount(); 14 15 String getColumnName( 16 int a_colIndex); 17 18 Object getColValue( 19 Object a_item, 20 int a_colIndex); 21 22 Class getColumnClass( 23 int a_colIndex); 24 25 boolean isCellEditable( 26 int a_colIndex); 27 28 void setColValue( 29 Object a_item, 30 int a_colIndex, 31 Object a_value); 32 33 /*** 34 * With this method you can update the TableColumnModel directly, without table. 35 */ 36 void updateTableColumnModel( 37 JTable a_table, 38 TableColumnModel a_tableColumnModel); 39 }