FileDocCategorySizeDatePackage
GenericTableModel.javaAPI DocGlassfish v2 API3757Fri May 04 22:34:58 BST 2007com.sun.enterprise.tools.common.ui

GenericTableModel

public class GenericTableModel extends AbstractTableModel
author
bnevins
version

Fields Summary
private GenericTableInfo
tableInfo
Constructors Summary
public GenericTableModel(GenericTableInfo info)

		Reporter.assertIt(info); //NOI18N
		tableInfo = info;
		//load();
    
Methods Summary
public java.lang.ClassgetColumnClass(int c)

  
		return String.class;
	
public intgetColumnCount()

  
		return tableInfo.getColumnCount();
	
public java.lang.StringgetColumnName(int c)

  
		return tableInfo.getColumnName(c);
	
public intgetRowCount()

 
		return tableInfo.getRowCount();
	
public java.lang.ObjectgetValueAt(int r, int c)

  
		return tableInfo.getString(r, c);
	
public booleanisCellEditable(int r, int c)

 
		boolean b = tableInfo.isColumnEditable(c);
	///	System.out.println("isColEditable for Column " + c + " --- " + b); //NOI18N
		//return tableInfo.isColumnEditable(c);
		return b;
	
public voidsetValueAt(java.lang.Object obj, int r, int c)

  
		Reporter.assertIt(obj instanceof String); //NOI18N
		String s = (String)obj;
		
		tableInfo.setString(r, c, s);