@Deprecated public class DefaultEventKTableModel extends java.lang.Object implements de.kupzog.ktable.KTableModel, ListEventListener
KTableModel that displays an EventList. Each element of the
EventList corresponds to a row in the KTableModel. The columns
of the table must be specified using a TableFormat.
| Extension: KTable | |
| This Glazed Lists extension requires the third party library KTable. | |
| Tested Version: | 2.1.2 |
| Home page: | http://ktable.sourceforge.net/ |
| License: | Eclipse Public License |
The DefaultEventKTableModel class is not thread-safe. Unless otherwise
noted, all methods are only safe to be called from the SWT event dispatch thread.
To do this programmatically, use Display.asyncExec(Runnable).
| Modifier and Type | Field and Description |
|---|---|
protected EventList |
source
Deprecated.
the proxy moves events to the SWT thread
|
| Modifier | Constructor and Description |
|---|---|
|
DefaultEventKTableModel(de.kupzog.ktable.KTable table,
EventList source,
TableFormat tableFormat)
Deprecated.
Create a new
DefaultEventKTableModel that uses elements from the
specified EventList as rows, and the specified TableFormat
to divide row objects across columns. |
protected |
DefaultEventKTableModel(de.kupzog.ktable.KTable table,
EventList source,
TableFormat tableFormat,
boolean disposeSource)
Deprecated.
Create a new
DefaultEventKTableModel that uses elements from the
specified EventList as rows, and the specified TableFormat
to divide row objects across columns. |
| Modifier and Type | Method and Description |
|---|---|
Point |
belongsToCell(int column,
int row)
Deprecated.
|
void |
dispose()
Deprecated.
Releases the resources consumed by this
DefaultEventKTableModel so that it
may eventually be garbage collected. |
de.kupzog.ktable.KTableCellEditor |
getCellEditor(int column,
int row)
Deprecated.
|
de.kupzog.ktable.KTableCellRenderer |
getCellRenderer(int column,
int row)
Deprecated.
|
int |
getColumnCount()
Deprecated.
|
int |
getColumnWidth(int col)
Deprecated.
|
java.lang.Object |
getContentAt(int column,
int row)
Deprecated.
|
int |
getFixedHeaderColumnCount()
Deprecated.
|
int |
getFixedHeaderRowCount()
Deprecated.
|
int |
getFixedSelectableColumnCount()
Deprecated.
|
int |
getFixedSelectableRowCount()
Deprecated.
|
int |
getRowCount()
Deprecated.
|
int |
getRowHeight(int row)
Deprecated.
|
int |
getRowHeightMinimum()
Deprecated.
|
java.lang.String |
getTooltipAt(int column,
int row)
Deprecated.
|
boolean |
isColumnResizable(int col)
Deprecated.
|
boolean |
isRowResizable(int row)
Deprecated.
|
void |
listChanged(ListEvent listChanges)
Deprecated.
When the underlying list changes, this notification allows the
object to repaint itself or update itself as necessary.
|
void |
setColumnWidth(int col,
int width)
Deprecated.
|
void |
setContentAt(int column,
int row,
java.lang.Object value)
Deprecated.
|
void |
setRowHeight(int row,
int value)
Deprecated.
|
protected EventList source
public DefaultEventKTableModel(de.kupzog.ktable.KTable table,
EventList source,
TableFormat tableFormat)
DefaultEventKTableModel that uses elements from the
specified EventList as rows, and the specified TableFormat
to divide row objects across columns.table - the KTable the model is created forsource - the EventListtableFormat - provides logic to divide row objects across columns.
If the value implements the KTableFormat interface, those
methods will be used to provide further details such as cell renderers,
cell editors and row heights.protected DefaultEventKTableModel(de.kupzog.ktable.KTable table,
EventList source,
TableFormat tableFormat,
boolean disposeSource)
DefaultEventKTableModel that uses elements from the
specified EventList as rows, and the specified TableFormat
to divide row objects across columns.table - the KTable the model is created forsource - the EventListtableFormat - provides logic to divide row objects across columns.
If the value implements the KTableFormat interface, those
methods will be used to provide further details such as cell renderers,
cell editors and row heights.disposeSource - true if the source list should be disposed when disposing
this model, false otherwisepublic void listChanged(ListEvent listChanges)
It is mandatory that the calling thread has obtained the write lock on the source list. This is because the calling thread will have written to the source list to cause this event. This condition guarantees that no writes can occur while the listener is handling this event. It is an error to write to the source list while processing an event.
listChanged in interface ListEventListenerlistChanges - a ListEvent describing the changes to the listpublic java.lang.Object getContentAt(int column,
int row)
getContentAt in interface de.kupzog.ktable.KTableModelpublic java.lang.String getTooltipAt(int column,
int row)
getTooltipAt in interface de.kupzog.ktable.KTableModelpublic de.kupzog.ktable.KTableCellEditor getCellEditor(int column,
int row)
getCellEditor in interface de.kupzog.ktable.KTableModelpublic void setContentAt(int column,
int row,
java.lang.Object value)
setContentAt in interface de.kupzog.ktable.KTableModelpublic de.kupzog.ktable.KTableCellRenderer getCellRenderer(int column,
int row)
getCellRenderer in interface de.kupzog.ktable.KTableModelpublic Point belongsToCell(int column, int row)
belongsToCell in interface de.kupzog.ktable.KTableModelpublic int getRowCount()
getRowCount in interface de.kupzog.ktable.KTableModelpublic int getFixedHeaderRowCount()
getFixedHeaderRowCount in interface de.kupzog.ktable.KTableModelpublic int getFixedSelectableRowCount()
getFixedSelectableRowCount in interface de.kupzog.ktable.KTableModelpublic int getColumnCount()
getColumnCount in interface de.kupzog.ktable.KTableModelpublic int getFixedHeaderColumnCount()
getFixedHeaderColumnCount in interface de.kupzog.ktable.KTableModelpublic int getFixedSelectableColumnCount()
getFixedSelectableColumnCount in interface de.kupzog.ktable.KTableModelpublic int getColumnWidth(int col)
getColumnWidth in interface de.kupzog.ktable.KTableModelpublic boolean isColumnResizable(int col)
isColumnResizable in interface de.kupzog.ktable.KTableModelpublic void setColumnWidth(int col,
int width)
setColumnWidth in interface de.kupzog.ktable.KTableModelpublic int getRowHeight(int row)
getRowHeight in interface de.kupzog.ktable.KTableModelpublic boolean isRowResizable(int row)
isRowResizable in interface de.kupzog.ktable.KTableModelpublic int getRowHeightMinimum()
getRowHeightMinimum in interface de.kupzog.ktable.KTableModelpublic void setRowHeight(int row,
int value)
setRowHeight in interface de.kupzog.ktable.KTableModelpublic void dispose()
DefaultEventKTableModel so that it
may eventually be garbage collected.
A DefaultEventKTableModel will be garbage collected without a call to
dispose(), but not before its source EventList is garbage
collected. By calling dispose(), you allow the DefaultEventKTableModel
to be garbage collected before its source EventList. This is
necessary for situations where a DefaultEventKTableModel is short-lived but
its source EventList is long-lived.
Warning: It is an error
to call any method on a DefaultEventKTableModel after it has been disposed.
Glazed Lists, Copyright © 2003 publicobject.com, O'Dell Engineering.
Documentation build by swimmesberger at Wed Feb 13 09:45:20 CET 2019