public class DefaultTableViewModel extends AbstractTableViewModel
TableViewModel interface.mListenerList| 构造器和说明 |
|---|
DefaultTableViewModel()
Construct.
|
DefaultTableViewModel(Collection pContent)
Construct.
|
DefaultTableViewModel(TableViewColumn[] pColumns)
Construct.
|
DefaultTableViewModel(TableViewColumn[] pColumns,
Collection pContent)
Construct.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addRow(Object pRowObject)
Adds a row
|
void |
addRows(Collection pRowObjects)
Adds some rows
|
TableViewColumn[] |
getColumns()
Gets the columns
|
int |
getRowCount()
Gets the numur o
Returns the number of rows.
|
Object |
getRowObject(int pRowIndex)
Returns the Object represent the row.
|
void |
removeRow(Object pRowObject)
Removes a row.
|
void |
removeRows(Collection pRowObjects)
Removes some rows.
|
void |
updateRow(Object pRowObject)
Updates a row.
|
void |
updateRow(Object pOldRowObject,
Object pNewRowObject)
Update row by a new object.
|
void |
updateRows(Collection pRowObjects)
Updates some rows.
|
addTableViewModelListener, fireTableChanged, fireTableDataChanged, fireTableRowDeleted, fireTableRowInserted, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableRowUpdated, getColumnName, getListeners, removeTableViewModelListenerpublic DefaultTableViewModel()
Object.Object()public DefaultTableViewModel(TableViewColumn[] pColumns)
pColumns - all the collumnspublic DefaultTableViewModel(Collection pContent)
pContent - the rowspublic DefaultTableViewModel(TableViewColumn[] pColumns, Collection pContent)
pColumns - all the collumnspContent - the rowspublic int getRowCount()
sbrunner.gui.tableView.TableViewModel#getRowCount()public Object getRowObject(int pRowIndex)
pRowIndex - the row whose value is to be queriedsbrunner.gui.tableView.TableViewModel#getRowObject(int)public TableViewColumn[] getColumns()
sbrunner.gui.tableView.TableViewModel#getColumns()public void addRow(Object pRowObject)
pRowObject - the new rowpublic void addRows(Collection pRowObjects)
pRowObjects - the rows objectpublic void removeRow(Object pRowObject)
pRowObject - the row to removepublic void removeRows(Collection pRowObjects)
pRowObjects - The rows to removespublic void updateRow(Object pRowObject)
pRowObject - the row to updatepublic void updateRows(Collection pRowObjects)
pRowObjects - the rows to updateCopyright © 2023 onecode. All rights reserved.