Class TreeTableModelAdapter
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- com.puppycrawl.tools.checkstyle.gui.TreeTableModelAdapter
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.table.TableModel
public class TreeTableModelAdapter extends javax.swing.table.AbstractTableModel
This is a wrapper class takes a TreeTableModel and implements the table model interface. The implementation is trivial, with all of the event dispatching support provided by the superclass: the AbstractTableModel. Original Source Location- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TreeTableModelAdapter(ParseTreeTableModel treeTableModel, javax.swing.JTree tree)
Initialise tree and treeTableModel class attributes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<?>
getColumnClass(int column)
int
getColumnCount()
java.lang.String
getColumnName(int column)
int
getRowCount()
java.lang.Object
getValueAt(int row, int column)
boolean
isCellEditable(int row, int column)
-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener, setValueAt
-
-
-
-
Constructor Detail
-
TreeTableModelAdapter
public TreeTableModelAdapter(ParseTreeTableModel treeTableModel, javax.swing.JTree tree)
Initialise tree and treeTableModel class attributes.- Parameters:
treeTableModel
- Tree table model.tree
- JTree component.
-
-
Method Detail
-
getColumnCount
public int getColumnCount()
-
getColumnName
public java.lang.String getColumnName(int column)
- Specified by:
getColumnName
in interfacejavax.swing.table.TableModel
- Overrides:
getColumnName
in classjavax.swing.table.AbstractTableModel
-
getColumnClass
public java.lang.Class<?> getColumnClass(int column)
- Specified by:
getColumnClass
in interfacejavax.swing.table.TableModel
- Overrides:
getColumnClass
in classjavax.swing.table.AbstractTableModel
-
getRowCount
public int getRowCount()
-
getValueAt
public java.lang.Object getValueAt(int row, int column)
-
isCellEditable
public boolean isCellEditable(int row, int column)
- Specified by:
isCellEditable
in interfacejavax.swing.table.TableModel
- Overrides:
isCellEditable
in classjavax.swing.table.AbstractTableModel
-
-