project35.util
Class NoneditableTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
project35.util.NoneditableTableModel
- All Implemented Interfaces:
- Serializable, TableModel
public class NoneditableTableModel
- extends AbstractTableModel
creates generic read-only data table
Copyright (c) Kevin Garwood and University of Manchester 2007.
All rights reserved. Licensed under the Academic Free License
version 3.0. For more information on the terms and conditions,
please see the file "LICENSE" that is included in this distribution.
- Version:
- 1.0
- Author:
- Kevin Garwood (kgarwood@users.sourceforge.net),
code contributions from 2002 - September 30, 2007.
- See Also:
- Serialized Form
| Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener, setValueAt |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NoneditableTableModel
public NoneditableTableModel()
setFieldNames
public void setFieldNames(String[] fieldNames)
setData
public void setData(String[][] data)
setData
public void setData(String[][] data,
String[] fieldNames)
isCellEditable
public boolean isCellEditable(int row,
int column)
- Specified by:
isCellEditable in interface TableModel- Overrides:
isCellEditable in class AbstractTableModel
getColumnName
public String getColumnName(int column)
- Specified by:
getColumnName in interface TableModel- Overrides:
getColumnName in class AbstractTableModel
getRowCount
public int getRowCount()
getColumnCount
public int getColumnCount()
getValueAt
public Object getValueAt(int row,
int column)
directlyGetValue
public String directlyGetValue(int row,
int column)