Class PrintableTableModel
java.lang.Object
org.jfree.report.modules.misc.tablemodel.PrintableTableModel
- All Implemented Interfaces:
TableModel
A tablemodel that allows to override the column names. This is usefull
in internationalized environments, where the tablemodel returns diffent
columnnames depending on the current locale.
- Author:
- LordOfCode
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
getColumnClass
(int columnIndex) int
getColumnName
(int columnIndex) Retrieves the internationalized column name from the string array.int
getValueAt
(int rowIndex, int columnIndex) boolean
isCellEditable
(int rowIndex, int columnIndex) void
void
setValueAt
(Object aValue, int rowIndex, int columnIndex)
-
Constructor Details
-
PrintableTableModel
-
-
Method Details
-
getColumnCount
public int getColumnCount()- Specified by:
getColumnCount
in interfaceTableModel
-
getRowCount
public int getRowCount()- Specified by:
getRowCount
in interfaceTableModel
-
isCellEditable
public boolean isCellEditable(int rowIndex, int columnIndex) - Specified by:
isCellEditable
in interfaceTableModel
-
getColumnClass
- Specified by:
getColumnClass
in interfaceTableModel
-
getValueAt
- Specified by:
getValueAt
in interfaceTableModel
-
setValueAt
- Specified by:
setValueAt
in interfaceTableModel
-
getColumnName
Retrieves the internationalized column name from the string array.- Specified by:
getColumnName
in interfaceTableModel
- See Also:
-
addTableModelListener
- Specified by:
addTableModelListener
in interfaceTableModel
-
removeTableModelListener
- Specified by:
removeTableModelListener
in interfaceTableModel
-