|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
celeboss.ui.util.SortedTableModel
This table model holds a list of objects which are sorted to the columns defined.
| Field Summary |
| Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
| Constructor Summary | |
SortedTableModel()
Create a model that monitors a set of entities. |
|
| Method Summary | |
int |
addObject(java.lang.Object newObject)
Add a new object to this table model. |
protected void |
cellUpdated(int row,
int column)
Ths value of a cell has been updated in the remote data source. |
protected abstract java.lang.Object |
getCellValue(java.lang.Object item,
int column)
This method provides the cell vaue for the specified column. |
abstract java.lang.String |
getColumnDescription(int column)
This returns a long description for what the data in the specified column represents. |
java.lang.Object |
getRow(int rowId)
Return the contents of the specified row. |
int |
getRowCount()
Returns the number of celebrities. |
int |
getRowId(java.lang.Object object)
Retunr the row index of the specified object. |
java.lang.Object |
getValueAt(int row,
int column)
Return the object at a specific cell. |
void |
release()
This method releases all references to the model and objects. |
int |
removeObject(java.lang.Object object)
Remove the specifed object. |
void |
sortByColumn(int column,
boolean ascending)
Change the sorting parameters. |
| Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.swing.table.TableModel |
getColumnCount |
| Constructor Detail |
public SortedTableModel()
| Method Detail |
public int addObject(java.lang.Object newObject)
newObject - Object to add.
protected void cellUpdated(int row,
int column)
row - Row id.column - Column id of changed cell.
protected abstract java.lang.Object getCellValue(java.lang.Object item,
int column)
item - Item for value source.column - Column index.
public abstract java.lang.String getColumnDescription(int column)
column - Index of target column
public java.lang.Object getRow(int rowId)
rowId - Id.
public int getRowCount()
TableModel.getRowCount()public int getRowId(java.lang.Object object)
object - Object to searhc for.
public java.lang.Object getValueAt(int row,
int column)
row - Row index.column - column index
public void release()
public int removeObject(java.lang.Object object)
object - Object to remove
public void sortByColumn(int column,
boolean ascending)
column - Column index for sorting.ascending - Sort ascending.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||