|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AdvancedTableModel<E>
AdvancedTableModel is the extended interface intended to be implemented by
Glazed Lists table models. It provides additional methods for managing the
TableFormat and disposing, for example.
| Method Summary | |
|---|---|
void |
dispose()
Releases the resources consumed by this AdvancedTableModel so that it
may eventually be garbage collected. |
E |
getElementAt(int index)
Retrieves the value at the specified location from the table. |
TableFormat<? super E> |
getTableFormat()
Gets the TableFormat used by this table model. |
void |
setTableFormat(TableFormat<? super E> tableFormat)
Sets the TableFormat that will extract column data from each
element. |
| Methods inherited from interface javax.swing.table.TableModel |
|---|
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt |
| Method Detail |
|---|
TableFormat<? super E> getTableFormat()
TableFormat used by this table model.
void setTableFormat(TableFormat<? super E> tableFormat)
TableFormat that will extract column data from each
element. This has some very important consequences. Any cell selections
will be lost - this is due to the fact that the TableFormats may have
different numbers of columns, and JTable has no event to specify columns
changing without rows.
E getElementAt(int index)
This may be used by renderers to paint the cells of a row differently based on the entire value for that row.
TableModel.getValueAt(int,int)void dispose()
AdvancedTableModel so that it
may eventually be garbage collected.
An AdvancedTableModel will be garbage collected without a call to
dispose(), but not before its source EventList is garbage
collected. By calling dispose(), you allow the AdvancedTableModel
to be garbage collected before its source EventList. This is
necessary for situations where an AdvancedTableModel is short-lived but
its source EventList is long-lived.
Warning: It is an error
to call any method on an AdvancedTableModel after it has been disposed.
As such, this AdvancedTableModel should be detached from its
corresponding Component before it is disposed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||