Package org.openxava.tab.impl
Interface ITableModel
-
- All Superinterfaces:
javax.swing.table.TableModel
public interface ITableModel extends javax.swing.table.TableModel
Adds to the swingTableModel
the posibility of add, remove and modify rows.In the model there are no null rows, but cells with null are allowed.
When add, insert or modify rows you can send null, but the implementation will store a empty array or equivalent.- Author:
- Javier Paniza
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addRow(java.lang.Object[] rowData)
Add a row at end.java.lang.Object[]
getRow(int row)
Return a array with data of indicated row.void
insertRow(int row, java.lang.Object[] rowData)
Insert the row in the indicated place.void
removeAllRows()
void
removeRow(int row)
void
setRow(int row, java.lang.Object[] rowData)
Set new values in the row.
-
-
-
Method Detail
-
addRow
void addRow(java.lang.Object[] rowData)
Add a row at end.- Parameters:
rowData
- Data to add, ifnull
add a row which datas arenull
, but row itself is notnull
.
-
getRow
java.lang.Object[] getRow(int row)
Return a array with data of indicated row.- Returns:
!= null
-
insertRow
void insertRow(int row, java.lang.Object[] rowData)
Insert the row in the indicated place.*
- Parameters:
rowData
- Data to insert, ifnull
add a row which datas arenull
, but row itself is notnull
.
-
removeAllRows
void removeAllRows()
-
removeRow
void removeRow(int row)
-
setRow
void setRow(int row, java.lang.Object[] rowData)
Set new values in the row.- Parameters:
rowData
- Data to set, ifnull
add a row which datas arenull
, but row itself is notnull
.
-
-