Package org.compiere.report.core
Class ResultTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
org.compiere.report.core.ResultTableModel
- All Implemented Interfaces:
Serializable
,TableModel
The TableModel for JTable to present RModel information
- Version:
- $Id: ResultTableModel.java,v 1.2 2006/07/30 00:51:06 jjanke Exp $
- Author:
- Jorg Janke
- See Also:
-
Field Summary
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionClass<?>
getColumnClass
(int columnIndex) Get Column Classint
Get ColumnCountgetColumnName
(int columnIndex) Get Column NameReturns the ArrayList of ArrayLists that contains the table's data values.int
Get Row CountgetValueAt
(int row, int col) Get Value Atboolean
isCellEditable
(int rowIndex, int columnIndex) Is Cell Editablevoid
moveRow
(int from, int to) Move Rowvoid
setValueAt
(Object aValue, int row, int col) Set Value AtMethods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
Constructor Details
-
ResultTableModel
Create a JTable Model from ReportModel- Parameters:
reportModel
-
-
-
Method Details
-
getRowCount
public int getRowCount()Get Row Count- Returns:
- row count
-
getColumnCount
public int getColumnCount()Get ColumnCount- Returns:
- column count
-
getColumnName
Get Column Name- Specified by:
getColumnName
in interfaceTableModel
- Overrides:
getColumnName
in classAbstractTableModel
- Parameters:
columnIndex
-- Returns:
- Column Name
-
getColumnClass
Get Column Class- Specified by:
getColumnClass
in interfaceTableModel
- Overrides:
getColumnClass
in classAbstractTableModel
- Parameters:
columnIndex
-- Returns:
- Column Class
-
isCellEditable
public boolean isCellEditable(int rowIndex, int columnIndex) Is Cell Editable- Specified by:
isCellEditable
in interfaceTableModel
- Overrides:
isCellEditable
in classAbstractTableModel
- Parameters:
rowIndex
-columnIndex
-- Returns:
- true, if editable
-
getValueAt
Get Value At- Parameters:
row
-col
-- Returns:
- value
-
setValueAt
Set Value At- Specified by:
setValueAt
in interfaceTableModel
- Overrides:
setValueAt
in classAbstractTableModel
- Parameters:
aValue
-row
-col
-
-
moveRow
public void moveRow(int from, int to) Move Row- Parameters:
from
- indexto
- index
-
getDataList
Returns the ArrayList of ArrayLists that contains the table's data values. The ArrayLists contained in the outer vector are each a single row of values.- Returns:
- the ArrayList of ArrayLists containing the tables data values author Teo Sarca [ 1734327 ]
-