DefaultEventTableModel with a
ManyToOneTableModelEventAdapter instead. This class will be
removed in the GL 2.0 release. The wrapping of the source list
with an EDT safe list has been determined to be undesirable (it
is better for the user to provide their own EDT safe list).@Deprecated public class EventJXTableModel<E> extends EventTableModel<E>
EventTableModel for better integration with
JXTable.
In particular, this table model implements a different strategy to tranform
ListEvents to TableModelEvents. Whereas EventTableModel
converts each ListEvent block to a TableModelEvent, EventJXTableModel tries
to create only one TableModelEvent for a ListEvent, that does not represent a
reorder. If the ListEvent contains multiple blocks, a special
data changed TableModelEvent will be fired, indicating that all row
data has changed. Note, that such a data changed TableModelEvent can
lead to a loss of the table selection.
swingThreadSourcesource| Constructor and Description |
|---|
EventJXTableModel(EventList<E> source,
java.lang.String[] propertyNames,
java.lang.String[] columnLabels,
boolean[] writable)
|
EventJXTableModel(EventList<E> source,
TableFormat<? super E> tableFormat)
|
createSwingThreadProxyList, disposegetColumnClass, getColumnCount, getColumnName, getElementAt, getEventAdapter, getRowCount, getTableFormat, getValueAt, handleListChange, isCellEditable, listChanged, setEventAdapter, setTableFormat, setValueAtaddTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener@Deprecated public EventJXTableModel(EventList<E> source, java.lang.String[] propertyNames, java.lang.String[] columnLabels, boolean[] writable)
GlazedLists.tableFormat(String[], String[], boolean[])
and GlazedListsSwing.eventTableModelWithThreadProxyList(EventList, TableFormat, ca.odell.glazedlists.swing.TableModelEventAdapter.Factory)
insteadTableFormat. It uses JavaBeans and reflection to create
a TableFormat as specified.
Note that the classes which will be obfuscated may not work with
reflection. In this case, implement a TableFormat manually.
source - the EventList that provides the row objectspropertyNames - an array of property names in the JavaBeans format.
For example, if your list contains Objects with the methods getFirstName(),
setFirstName(String), getAge(), setAge(Integer), then this array should
contain the two strings "firstName" and "age". This format is specified
by the JavaBeans PropertyDescriptor.columnLabels - the corresponding column names for the listed property
names. For example, if your columns are "firstName" and "age", then
your labels might be "First Name" and "Age".writable - an array of booleans specifying which of the columns in
your table are writable.@Deprecated public EventJXTableModel(EventList<E> source, TableFormat<? super E> tableFormat)
GlazedListsSwing.eventTableModelWithThreadProxyList(EventList, TableFormat, ca.odell.glazedlists.swing.TableModelEventAdapter.Factory) insteadsource
using the the given tableFormat.source - the EventList that provides the row objectstableFormat - the object responsible for extracting column data from the row objectsGlazed Lists, Copyright © 2003 publicobject.com, O'Dell Engineering.
Documentation build by swimmesberger at Wed Feb 13 09:45:20 CET 2019