Elexis: Das führende OpenSource-Arztpraxisprogamm
im deutschsprachigen Raum
Java doc für Elexis version 2.1.7.dev vom 01.09.2013

de.ralfebert.rcputils.tables
Class TableViewerBuilder

java.lang.Object
  extended by de.ralfebert.rcputils.tables.TableViewerBuilder

public class TableViewerBuilder
extends java.lang.Object

A convenient builder class for creating TableViewers with support for nested properties, sorting and editing.

See Also:
http://www.ralfebert.de/blog/eclipsercp/tableviewerbuilder/

Constructor Summary
TableViewerBuilder(org.eclipse.swt.widgets.Composite parent)
          Creates a new TableViewerBuilder with default SWT styles.
TableViewerBuilder(org.eclipse.swt.widgets.Composite parent, int style)
          Creates a new TableViewerBuilder.
 
Method Summary
 ColumnBuilder createColumn(java.lang.String columnHeaderText)
          Creates a new ColumnBuilder that can be used to configure the table column.
 org.eclipse.swt.widgets.Table getTable()
          Returns the SWT Table.
 org.eclipse.jface.viewers.TableViewer getTableViewer()
          Returns the JFace TableViewer.
 void setInput(java.util.Collection<?> input)
          Sets the given collection as input object and an ArrayContentProvider as content provider for the TableViewer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableViewerBuilder

public TableViewerBuilder(org.eclipse.swt.widgets.Composite parent,
                          int style)
Creates a new TableViewerBuilder. This instantly creates a Table widget and a TableViewer. The given parent Composite needs to be empty, because `TableColumnLayout` is used internally.


TableViewerBuilder

public TableViewerBuilder(org.eclipse.swt.widgets.Composite parent)
Creates a new TableViewerBuilder with default SWT styles.

Method Detail

createColumn

public ColumnBuilder createColumn(java.lang.String columnHeaderText)
Creates a new ColumnBuilder that can be used to configure the table column. When you have finished configuring the column, call build() on the ColumnBuilder to create the actual column.


setInput

public void setInput(java.util.Collection<?> input)
Sets the given collection as input object and an ArrayContentProvider as content provider for the TableViewer.


getTableViewer

public org.eclipse.jface.viewers.TableViewer getTableViewer()
Returns the JFace TableViewer.


getTable

public org.eclipse.swt.widgets.Table getTable()
Returns the SWT Table.


Elexis: Das führende OpenSource-Arztpraxisprogamm
im deutschsprachigen Raum
Java doc für Elexis version 2.1.7.dev vom 01.09.2013