org.jboss.aophelper.ui
Class GenericEditTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by org.jboss.aophelper.ui.GenericEditTableModel
All Implemented Interfaces:
Serializable, TableModel
Direct Known Subclasses:
ClasspathTableModel, RunClasspathTableModel, RunXmlTableModel, XmlTableModel

public abstract class GenericEditTableModel
extends AbstractTableModel

A GenericEditTableModel.

Version:
$Revision: 1.1 $
Author:
Stale W. Pedersen
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
GenericEditTableModel()
           
 
Method Summary
 void addRow(String cp)
           
 void addRows(List<String> newRows)
           
 void clearRows()
           
 Class<?> getColumnClass(int c)
          JTable uses this method to determine the default renderer/ editor for each cell.
 int getColumnCount()
           
 String getColumnName(int column)
           
abstract  List<String> getData()
           
 int getRowCount()
           
 String getValueAt(int rowIndex, int columnIndex)
           
 boolean isCellEditable(int row, int col)
          Set all cells noneditable
 void removeRow(String row)
           
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener, setValueAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericEditTableModel

public GenericEditTableModel()
Method Detail

getData

public abstract List<String> getData()

getColumnCount

public int getColumnCount()

getRowCount

public int getRowCount()

getValueAt

public String getValueAt(int rowIndex,
                         int columnIndex)

getColumnName

public String getColumnName(int column)
Specified by:
getColumnName in interface TableModel
Overrides:
getColumnName in class AbstractTableModel

getColumnClass

public Class<?> getColumnClass(int c)
JTable uses this method to determine the default renderer/ editor for each cell.

Specified by:
getColumnClass in interface TableModel
Overrides:
getColumnClass in class AbstractTableModel

isCellEditable

public boolean isCellEditable(int row,
                              int col)
Set all cells noneditable

Specified by:
isCellEditable in interface TableModel
Overrides:
isCellEditable in class AbstractTableModel
Returns:
false;

addRow

public void addRow(String cp)

removeRow

public void removeRow(String row)

addRows

public void addRows(List<String> newRows)

clearRows

public void clearRows()


Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.