public class GridTableViewerComposite extends AbstractTableViewerComposite<org.eclipse.nebula.jface.gridviewer.GridTableViewer>
Composite
containing a GridTableViewer
.Constructor and Description |
---|
GridTableViewerComposite(org.eclipse.swt.widgets.Composite parent,
int style,
Object inputObject,
TableViewerSWTCustomization customization,
org.eclipse.core.databinding.observable.value.IObservableValue title,
org.eclipse.core.databinding.observable.value.IObservableValue tooltip)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addColumnListener(org.eclipse.swt.events.ControlListener columnlistener)
Adds a new
column listener . |
protected void |
configureContextMenu(org.eclipse.nebula.jface.gridviewer.GridTableViewer tableViewer)
Configures the context menu for the given TableViewer instance.
|
protected void |
configureViewerFilters(org.eclipse.nebula.jface.gridviewer.GridTableViewer tableViewer)
Configures viewer filters for the given TableViewer instance.
|
protected org.eclipse.jface.viewers.ViewerColumn |
createColumn(ColumnConfiguration config,
org.eclipse.emf.databinding.EMFDataBindingContext emfDataBindingContext,
org.eclipse.nebula.jface.gridviewer.GridTableViewer 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.nebula.jface.gridviewer.GridTableViewer |
createTableViewer(TableViewerSWTCustomization<org.eclipse.nebula.jface.gridviewer.GridTableViewer> customization,
org.eclipse.swt.widgets.Composite viewerComposite)
Creates the table viewer.
|
org.eclipse.swt.widgets.Widget[] |
getColumns()
Returns the list of columns of the table viewer.
|
TableControl |
getTableControl()
Returns the
TableControl . |
org.eclipse.nebula.jface.gridviewer.GridTableViewer |
getTableViewer() |
void |
setComparator(TableViewerComparator comparator,
List<Integer> sortableColumns)
Sets the comparator of the table viewer.
|
void |
setCompareColumn(int columnIndex)
Allow to set an initial sort.
|
createColumnViewerActivationStrategy, dispose, getActionBar, getColumnConfiguration, getEnabledFeatures, getValidationControls, viewerSelectionChanged
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 GridTableViewerComposite(org.eclipse.swt.widgets.Composite parent, int style, Object inputObject, TableViewerSWTCustomization customization, org.eclipse.core.databinding.observable.value.IObservableValue title, org.eclipse.core.databinding.observable.value.IObservableValue tooltip)
parent
- the parent Composite
style
- the style bitsinputObject
- the input objectcustomization
- the TableViewerSWTCustomization
title
- the titletooltip
- the tooltippublic org.eclipse.nebula.jface.gridviewer.GridTableViewer getTableViewer()
getTableViewer
in class AbstractTableViewerComposite<org.eclipse.nebula.jface.gridviewer.GridTableViewer>
AbstractTableViewer
protected org.eclipse.nebula.jface.gridviewer.GridTableViewer createTableViewer(TableViewerSWTCustomization<org.eclipse.nebula.jface.gridviewer.GridTableViewer> customization, org.eclipse.swt.widgets.Composite viewerComposite)
AbstractTableViewerComposite
createTableViewer
in class AbstractTableViewerComposite<org.eclipse.nebula.jface.gridviewer.GridTableViewer>
customization
- the TableViewerSWTCustomization
to useviewerComposite
- the parent compositeprotected void configureContextMenu(org.eclipse.nebula.jface.gridviewer.GridTableViewer tableViewer)
AbstractTableViewerComposite
configureContextMenu
in class AbstractTableViewerComposite<org.eclipse.nebula.jface.gridviewer.GridTableViewer>
tableViewer
- the table viewer to configureprotected void configureViewerFilters(org.eclipse.nebula.jface.gridviewer.GridTableViewer tableViewer)
AbstractTableViewerComposite
configureViewerFilters
in class AbstractTableViewerComposite<org.eclipse.nebula.jface.gridviewer.GridTableViewer>
tableViewer
- the table viewer to configureprotected org.eclipse.jface.layout.AbstractColumnLayout createLayout(org.eclipse.swt.widgets.Composite viewerComposite)
AbstractTableViewerComposite
Composite
.createLayout
in class AbstractTableViewerComposite<org.eclipse.nebula.jface.gridviewer.GridTableViewer>
viewerComposite
- the target compositepublic org.eclipse.swt.widgets.Widget[] getColumns()
AbstractTableViewerComposite
getColumns
in class AbstractTableViewerComposite<org.eclipse.nebula.jface.gridviewer.GridTableViewer>
public void addColumnListener(org.eclipse.swt.events.ControlListener columnlistener)
AbstractTableViewerComposite
column listener
.addColumnListener
in class AbstractTableViewerComposite<org.eclipse.nebula.jface.gridviewer.GridTableViewer>
columnlistener
- the listener to addpublic TableControl getTableControl()
AbstractTableViewerComposite
TableControl
.getTableControl
in class AbstractTableViewerComposite<org.eclipse.nebula.jface.gridviewer.GridTableViewer>
protected org.eclipse.jface.viewers.ViewerColumn createColumn(ColumnConfiguration config, org.eclipse.emf.databinding.EMFDataBindingContext emfDataBindingContext, org.eclipse.nebula.jface.gridviewer.GridTableViewer tableViewer)
AbstractTableViewerComposite
ViewerColumn
.createColumn
in class AbstractTableViewerComposite<org.eclipse.nebula.jface.gridviewer.GridTableViewer>
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.nebula.jface.gridviewer.GridTableViewer>
comparator
- the TableViewerComparator
to setsortableColumns
- the list of columns that can be sortedpublic void setCompareColumn(int columnIndex)
AbstractTableViewerComposite
setCompareColumn
in class AbstractTableViewerComposite<org.eclipse.nebula.jface.gridviewer.GridTableViewer>
columnIndex
- The column to sortCopyright © 2019. All rights reserved.