com.lightdev.lib.xml.ui
Class AttributeTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by javax.swing.table.DefaultTableModel
          extended by com.lightdev.lib.xml.ui.AttributeTableModel
All Implemented Interfaces:
Serializable, TableModel

public class AttributeTableModel
extends DefaultTableModel

A table model for attributes

Version:
1, March 5, 2005
Author:
Ulrich Hilger, Light Development, http://www.lightdev.com, info@lightdev.com, published under the terms and conditions of the BSD License, for details see file license.txt in the distribution package of this software
See Also:
Serialized Form

Constructor Summary
AttributeTableModel()
          constructor
 
Method Summary
 AttributeSet getAttributes()
          get the attributes in this table model
 int getColumnCount()
          Returns the number of columns in the model.
 boolean isCellEditable(int rowIndex, int columnIndex)
          Returns true if the cell at rowIndex and columnIndex is editable.
 void setAttributes(AttributeSet a)
          set the attributes of this table model
 
Methods inherited from class javax.swing.table.DefaultTableModel
addColumn, addColumn, addColumn, addRow, addRow, getColumnName, getDataVector, getRowCount, getValueAt, insertRow, insertRow, moveRow, newDataAvailable, newRowsAdded, removeRow, rowsRemoved, setColumnCount, setColumnIdentifiers, setColumnIdentifiers, setDataVector, setDataVector, setNumRows, setRowCount, setValueAt
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeTableModel

public AttributeTableModel()
constructor

Method Detail

setAttributes

public void setAttributes(AttributeSet a)
set the attributes of this table model

Parameters:
a - AttributeSet the attributes

getAttributes

public AttributeSet getAttributes()
get the attributes in this table model

Returns:
AttributeSet the attributes in this model

getColumnCount

public int getColumnCount()
Returns the number of columns in the model.

Specified by:
getColumnCount in interface TableModel
Overrides:
getColumnCount in class DefaultTableModel
Returns:
the number of columns in the model

isCellEditable

public boolean isCellEditable(int rowIndex,
                              int columnIndex)
Returns true if the cell at rowIndex and columnIndex is editable.

Specified by:
isCellEditable in interface TableModel
Overrides:
isCellEditable in class DefaultTableModel
Parameters:
rowIndex - the row whose value to be queried
columnIndex - the column whose value to be queried
Returns:
true if the cell is editable