Class ColumnBasedTableModel
- java.lang.Object
-
- org.locationtech.jts.jump.workbench.ui.ColumnBasedTableModel
-
- All Implemented Interfaces:
TableModel
- Direct Known Subclasses:
ColorThemingTableModel
,LayerTableModel
,SchemaTableModel
public abstract class ColumnBasedTableModel extends Object implements TableModel
Provides a column basedTableModel
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
ColumnBasedTableModel.Column
-
Constructor Summary
Constructors Constructor Description ColumnBasedTableModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTableModelListener(TableModelListener l)
protected void
fireTableChanged(TableModelEvent e)
protected ColumnBasedTableModel.Column
getColumn(int column)
Class
getColumnClass(int columnIndex)
int
getColumnCount()
String
getColumnName(int columnIndex)
Object
getValueAt(int rowIndex, int columnIndex)
int
indexOfColumn(String name)
protected boolean
isFiringEvents()
void
removeTableModelListener(TableModelListener l)
protected void
setColumns(Collection columns)
protected void
setFiringEvents(boolean firingEvents)
void
setValueAt(Object aValue, int rowIndex, int columnIndex)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.swing.table.TableModel
getRowCount, isCellEditable
-
-
-
-
Method Detail
-
getColumn
protected ColumnBasedTableModel.Column getColumn(int column)
-
addTableModelListener
public void addTableModelListener(TableModelListener l)
- Specified by:
addTableModelListener
in interfaceTableModel
-
removeTableModelListener
public void removeTableModelListener(TableModelListener l)
- Specified by:
removeTableModelListener
in interfaceTableModel
-
getColumnCount
public int getColumnCount()
- Specified by:
getColumnCount
in interfaceTableModel
-
getColumnName
public String getColumnName(int columnIndex)
- Specified by:
getColumnName
in interfaceTableModel
-
indexOfColumn
public int indexOfColumn(String name)
-
setColumns
protected void setColumns(Collection columns)
-
getColumnClass
public Class getColumnClass(int columnIndex)
- Specified by:
getColumnClass
in interfaceTableModel
-
setFiringEvents
protected void setFiringEvents(boolean firingEvents)
-
isFiringEvents
protected boolean isFiringEvents()
-
fireTableChanged
protected void fireTableChanged(TableModelEvent e)
-
getValueAt
public Object getValueAt(int rowIndex, int columnIndex)
- Specified by:
getValueAt
in interfaceTableModel
-
setValueAt
public void setValueAt(Object aValue, int rowIndex, int columnIndex)
- Specified by:
setValueAt
in interfaceTableModel
-
-