public class TableViewerComposite extends AbstractTableViewerComposite<org.eclipse.jface.viewers.TableViewer>
Composite
containing a TableViewer
.Modifier and Type | Method and Description |
---|---|
void |
addColumnListener(org.eclipse.swt.events.ControlListener columnlistener)
Adds a new
column listener . |
protected org.eclipse.jface.viewers.ViewerColumn |
createColumn(ColumnConfiguration config,
org.eclipse.emf.databinding.EMFDataBindingContext emfDataBindingContext,
org.eclipse.jface.viewers.TableViewer tableViewer)
Creates a new
ViewerColumn . |
protected org.eclipse.jface.layout.AbstractColumnLayout |
createLayout(org.eclipse.swt.widgets.Composite viewerComposite)
Sets the layout of the given
Composite . |
protected org.eclipse.jface.viewers.TableViewer |
createTableViewer(TableViewerSWTCustomization<org.eclipse.jface.viewers.TableViewer> customization,
org.eclipse.swt.widgets.Composite viewerComposite)
Creates the table viewer.
|
void |
dispose() |
org.eclipse.swt.widgets.Widget[] |
getColumns()
Returns the list of columns of the table viewer.
|
TableControl |
getTableControl()
Returns the
TableControl . |
org.eclipse.jface.viewers.TableViewer |
getTableViewer() |
void |
setComparator(TableViewerComparator comparator,
List<Integer> sortableColumns)
Sets the comparator of the table viewer.
|
configureContextMenu, configureViewerFilters, createColumnViewerActivationStrategy, getColumnConfiguration, getEnabledFeatures, getValidationControls
changed, checkSubclass, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList
computeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBar
addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getRegion, getShell, getSize, getTextDirection, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, requestLayout, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setToolTipText, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, update
addDisposeListener, addListener, checkWidget, getData, getData, getDisplay, getListeners, getStyle, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData, toString
public org.eclipse.jface.viewers.TableViewer getTableViewer()
getTableViewer
in class AbstractTableViewerComposite<org.eclipse.jface.viewers.TableViewer>
TableViewer
protected org.eclipse.jface.viewers.TableViewer createTableViewer(TableViewerSWTCustomization<org.eclipse.jface.viewers.TableViewer> customization, org.eclipse.swt.widgets.Composite viewerComposite)
createTableViewer
in class AbstractTableViewerComposite<org.eclipse.jface.viewers.TableViewer>
customization
- the TableViewerSWTCustomization
to useviewerComposite
- the parent compositeAbstractTableViewerComposite.createTableViewer(org.eclipse.emfforms.spi.swt.table.TableViewerSWTCustomization,
org.eclipse.swt.widgets.Composite)
protected org.eclipse.jface.layout.AbstractColumnLayout createLayout(org.eclipse.swt.widgets.Composite viewerComposite)
AbstractTableViewerComposite
Composite
.createLayout
in class AbstractTableViewerComposite<org.eclipse.jface.viewers.TableViewer>
viewerComposite
- the target compositepublic org.eclipse.swt.widgets.Widget[] getColumns()
AbstractTableViewerComposite
getColumns
in class AbstractTableViewerComposite<org.eclipse.jface.viewers.TableViewer>
public void addColumnListener(org.eclipse.swt.events.ControlListener columnlistener)
AbstractTableViewerComposite
column listener
.addColumnListener
in class AbstractTableViewerComposite<org.eclipse.jface.viewers.TableViewer>
columnlistener
- the listener to addpublic TableControl getTableControl()
AbstractTableViewerComposite
TableControl
.getTableControl
in class AbstractTableViewerComposite<org.eclipse.jface.viewers.TableViewer>
protected org.eclipse.jface.viewers.ViewerColumn createColumn(ColumnConfiguration config, org.eclipse.emf.databinding.EMFDataBindingContext emfDataBindingContext, org.eclipse.jface.viewers.TableViewer tableViewer)
AbstractTableViewerComposite
ViewerColumn
.createColumn
in class AbstractTableViewerComposite<org.eclipse.jface.viewers.TableViewer>
config
- the column description to useemfDataBindingContext
- the data binding context to usetableViewer
- the parent AbstractTableViewer
public void setComparator(TableViewerComparator comparator, List<Integer> sortableColumns)
AbstractTableViewerComposite
setComparator
in class AbstractTableViewerComposite<org.eclipse.jface.viewers.TableViewer>
comparator
- the TableViewerComparator
to setsortableColumns
- the list of columns that can be sortedpublic void dispose()
dispose
in class AbstractTableViewerComposite<org.eclipse.jface.viewers.TableViewer>
Copyright © 2018. All rights reserved.