public class GridTableViewerComposite extends AbstractTableViewerComposite
Composite
containing a GridTableViewer
.MIN_WIDTH, RESIZABLE, WEIGHT
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(TableViewerSWTCustomization.ColumnDescription columnDescription,
org.eclipse.emf.databinding.EMFDataBindingContext emfDataBindingContext,
org.eclipse.jface.viewers.AbstractTableViewer 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.AbstractTableViewer |
createTableViewer(TableViewerSWTCustomization 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.
|
createColumnViewerActivationStrategy, dispose, 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.nebula.jface.gridviewer.GridTableViewer getTableViewer()
getTableViewer
in class AbstractTableViewerComposite
AbstractTableViewer
protected org.eclipse.jface.viewers.AbstractTableViewer createTableViewer(TableViewerSWTCustomization customization, org.eclipse.swt.widgets.Composite viewerComposite)
AbstractTableViewerComposite
createTableViewer
in class AbstractTableViewerComposite
customization
- the TableViewerSWTCustomization
to useviewerComposite
- the parent compositeprotected org.eclipse.jface.layout.AbstractColumnLayout createLayout(org.eclipse.swt.widgets.Composite viewerComposite)
AbstractTableViewerComposite
Composite
.createLayout
in class AbstractTableViewerComposite
viewerComposite
- the target compositepublic org.eclipse.swt.widgets.Widget[] getColumns()
AbstractTableViewerComposite
getColumns
in class AbstractTableViewerComposite
public void addColumnListener(org.eclipse.swt.events.ControlListener columnlistener)
AbstractTableViewerComposite
column listener
.addColumnListener
in class AbstractTableViewerComposite
columnlistener
- the listener to addpublic TableControl getTableControl()
AbstractTableViewerComposite
TableControl
.getTableControl
in class AbstractTableViewerComposite
protected org.eclipse.jface.viewers.ViewerColumn createColumn(TableViewerSWTCustomization.ColumnDescription columnDescription, org.eclipse.emf.databinding.EMFDataBindingContext emfDataBindingContext, org.eclipse.jface.viewers.AbstractTableViewer tableViewer)
AbstractTableViewerComposite
ViewerColumn
.createColumn
in class AbstractTableViewerComposite
columnDescription
- 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
comparator
- the TableViewerComparator
to setsortableColumns
- the list of columns that can be sortedCopyright © 2016. All rights reserved.