ca.odell.glazedlists.swt
Class GlazedListsKTable

java.lang.Object
  extended by ca.odell.glazedlists.swt.GlazedListsKTable

public final class GlazedListsKTable
extends Object

A factory for creating all sorts of objects relevant to the Glazed Lists KTable extension.

Author:
Holger Brands

Method Summary
static DefaultEventKTableModel eventKTableModel(de.kupzog.ktable.KTable table, EventList source, TableFormat tableFormat)
          Create a new DefaultEventKTableModel that uses elements from the specified EventList as rows, and the specified TableFormat to divide row objects across columns.
static DefaultEventKTableModel eventKTableModelWithThreadProxyList(de.kupzog.ktable.KTable table, EventList source, TableFormat tableFormat)
          Create a new DefaultEventKTableModel that uses elements from the specified EventList as rows, and the specified TableFormat to divide row objects across columns.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

eventKTableModel

public static DefaultEventKTableModel eventKTableModel(de.kupzog.ktable.KTable table,
                                                       EventList source,
                                                       TableFormat tableFormat)
Create a new DefaultEventKTableModel that uses elements from the specified EventList as rows, and the specified TableFormat to divide row objects across columns.

The returned model is not thread-safe. Unless otherwise noted, all methods are only safe to be called from the SWT event handler thread. To do this programmatically, use Display.syncExec(Runnable) and wrap the source list (or some part of the source list's pipeline) using GlazedListsSWT.swtThreadProxyList(EventList, Display).

Parameters:
table - the KTable the model is created for
source - the EventList
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.

eventKTableModelWithThreadProxyList

public static DefaultEventKTableModel eventKTableModelWithThreadProxyList(de.kupzog.ktable.KTable table,
                                                                          EventList source,
                                                                          TableFormat tableFormat)
Create a new DefaultEventKTableModel that uses elements from the specified EventList as rows, and the specified TableFormat to divide row objects across columns.

The returned model is not thread-safe. Unless otherwise noted, all methods are only safe to be called from the SWT event handler thread.

Parameters:
table - the KTable the model is created for
source - the EventList
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.


Glazed Lists, Copyright © 2003 publicobject.com, O'Dell Engineering.
Documentation build by hbrands at 2013-02-12 20:58