|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.odell.glazedlists.swt.EventKTableModel
public class EventKTableModel
A 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 EventTableModel 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)
.
Constructor Summary | |
---|---|
EventKTableModel(de.kupzog.ktable.KTable table,
EventList source,
TableFormat tableFormat)
Create a new EventKTableModel that uses elements from the
specified EventList as rows, and the specified TableFormat
to divide row objects across columns. |
Method Summary | |
---|---|
Point |
belongsToCell(int column,
int row)
|
de.kupzog.ktable.KTableCellEditor |
getCellEditor(int column,
int row)
|
de.kupzog.ktable.KTableCellRenderer |
getCellRenderer(int column,
int row)
|
int |
getColumnCount()
|
int |
getColumnWidth(int col)
|
Object |
getContentAt(int column,
int row)
|
int |
getFixedHeaderColumnCount()
|
int |
getFixedHeaderRowCount()
|
int |
getFixedSelectableColumnCount()
|
int |
getFixedSelectableRowCount()
|
int |
getRowCount()
|
int |
getRowHeight(int row)
|
int |
getRowHeightMinimum()
|
String |
getTooltipAt(int column,
int row)
|
boolean |
isColumnResizable(int col)
|
boolean |
isRowResizable(int row)
|
void |
listChanged(ListEvent listChanges)
When the underlying list changes, this notification allows the object to repaint itself or update itself as necessary. |
void |
setColumnWidth(int col,
int width)
|
void |
setContentAt(int column,
int row,
Object value)
|
void |
setRowHeight(int row,
int value)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EventKTableModel(de.kupzog.ktable.KTable table, EventList source, TableFormat tableFormat)
EventKTableModel
that uses elements from the
specified EventList
as rows, and the specified TableFormat
to divide row objects across columns.
tableFormat
- 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.Method Detail |
---|
public 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 ListEventListener
public Object getContentAt(int column, int row)
getContentAt
in interface de.kupzog.ktable.KTableModel
public String getTooltipAt(int column, int row)
getTooltipAt
in interface de.kupzog.ktable.KTableModel
public de.kupzog.ktable.KTableCellEditor getCellEditor(int column, int row)
getCellEditor
in interface de.kupzog.ktable.KTableModel
public void setContentAt(int column, int row, Object value)
setContentAt
in interface de.kupzog.ktable.KTableModel
public de.kupzog.ktable.KTableCellRenderer getCellRenderer(int column, int row)
getCellRenderer
in interface de.kupzog.ktable.KTableModel
public Point belongsToCell(int column, int row)
belongsToCell
in interface de.kupzog.ktable.KTableModel
public int getRowCount()
getRowCount
in interface de.kupzog.ktable.KTableModel
public int getFixedHeaderRowCount()
getFixedHeaderRowCount
in interface de.kupzog.ktable.KTableModel
public int getFixedSelectableRowCount()
getFixedSelectableRowCount
in interface de.kupzog.ktable.KTableModel
public int getColumnCount()
getColumnCount
in interface de.kupzog.ktable.KTableModel
public int getFixedHeaderColumnCount()
getFixedHeaderColumnCount
in interface de.kupzog.ktable.KTableModel
public int getFixedSelectableColumnCount()
getFixedSelectableColumnCount
in interface de.kupzog.ktable.KTableModel
public int getColumnWidth(int col)
getColumnWidth
in interface de.kupzog.ktable.KTableModel
public boolean isColumnResizable(int col)
isColumnResizable
in interface de.kupzog.ktable.KTableModel
public void setColumnWidth(int col, int width)
setColumnWidth
in interface de.kupzog.ktable.KTableModel
public int getRowHeight(int row)
getRowHeight
in interface de.kupzog.ktable.KTableModel
public boolean isRowResizable(int row)
isRowResizable
in interface de.kupzog.ktable.KTableModel
public int getRowHeightMinimum()
getRowHeightMinimum
in interface de.kupzog.ktable.KTableModel
public void setRowHeight(int row, int value)
setRowHeight
in interface de.kupzog.ktable.KTableModel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |