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 TypeMethodDescriptionvoidgetColumnClass(int columnIndex) intgetColumnName(int columnIndex) Retrieves the internationalized column name from the string array.intgetValueAt(int rowIndex, int columnIndex) booleanisCellEditable(int rowIndex, int columnIndex) voidvoidsetValueAt(Object aValue, int rowIndex, int columnIndex)
-
Constructor Details
-
PrintableTableModel
-
-
Method Details
-
getColumnCount
public int getColumnCount()- Specified by:
getColumnCountin interfaceTableModel
-
getRowCount
public int getRowCount()- Specified by:
getRowCountin interfaceTableModel
-
isCellEditable
public boolean isCellEditable(int rowIndex, int columnIndex) - Specified by:
isCellEditablein interfaceTableModel
-
getColumnClass
- Specified by:
getColumnClassin interfaceTableModel
-
getValueAt
- Specified by:
getValueAtin interfaceTableModel
-
setValueAt
- Specified by:
setValueAtin interfaceTableModel
-
getColumnName
Retrieves the internationalized column name from the string array.- Specified by:
getColumnNamein interfaceTableModel- See Also:
-
addTableModelListener
- Specified by:
addTableModelListenerin interfaceTableModel
-
removeTableModelListener
- Specified by:
removeTableModelListenerin interfaceTableModel
-