public abstract class AbstractTableViewerComposite
extends org.eclipse.swt.widgets.Composite
Modifier and Type | Field and Description |
---|---|
protected static String |
MIN_WIDTH
Data key for the minimum width of the column.
|
protected static String |
RESIZABLE
Data key for resizable columns.
|
protected static String |
WEIGHT
Data key for column weight.
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractTableViewerComposite(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 |
---|---|
abstract void |
addColumnListener(org.eclipse.swt.events.ControlListener columnlistener)
Adds a new
column listener . |
protected abstract 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 static org.eclipse.jface.viewers.ColumnViewerEditorActivationStrategy |
createColumnViewerActivationStrategy(org.eclipse.jface.viewers.AbstractTableViewer tableViewer)
Creates a new
ColumnViewerEditorActivationStrategy for the given table viewer. |
protected abstract org.eclipse.jface.layout.AbstractColumnLayout |
createLayout(org.eclipse.swt.widgets.Composite viewerComposite)
Sets the layout of the given
Composite . |
protected abstract org.eclipse.jface.viewers.AbstractTableViewer |
createTableViewer(TableViewerSWTCustomization customization,
org.eclipse.swt.widgets.Composite viewerComposite)
Creates the table viewer.
|
void |
dispose() |
abstract org.eclipse.swt.widgets.Widget[] |
getColumns()
Returns the list of columns of the table viewer.
|
abstract TableControl |
getTableControl()
Returns the
TableControl . |
abstract org.eclipse.jface.viewers.AbstractTableViewer |
getTableViewer() |
Optional<List<org.eclipse.swt.widgets.Control>> |
getValidationControls() |
abstract void |
setComparator(TableViewerComparator comparator,
List<Integer> sortableColumns)
Sets the comparator of the table viewer.
|
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
protected static final String RESIZABLE
protected static final String WEIGHT
protected static final String MIN_WIDTH
protected AbstractTableViewerComposite(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 abstract org.eclipse.jface.viewers.AbstractTableViewer getTableViewer()
AbstractTableViewer
public Optional<List<org.eclipse.swt.widgets.Control>> getValidationControls()
public abstract org.eclipse.swt.widgets.Widget[] getColumns()
protected abstract org.eclipse.jface.layout.AbstractColumnLayout createLayout(org.eclipse.swt.widgets.Composite viewerComposite)
Composite
.viewerComposite
- the target compositeprotected abstract org.eclipse.jface.viewers.AbstractTableViewer createTableViewer(TableViewerSWTCustomization customization, org.eclipse.swt.widgets.Composite viewerComposite)
customization
- the TableViewerSWTCustomization
to useviewerComposite
- the parent compositeprotected abstract org.eclipse.jface.viewers.ViewerColumn createColumn(TableViewerSWTCustomization.ColumnDescription columnDescription, org.eclipse.emf.databinding.EMFDataBindingContext emfDataBindingContext, org.eclipse.jface.viewers.AbstractTableViewer tableViewer)
ViewerColumn
.columnDescription
- the column description to usetableViewer
- the parent AbstractTableViewer
emfDataBindingContext
- the data binding context to useprotected static org.eclipse.jface.viewers.ColumnViewerEditorActivationStrategy createColumnViewerActivationStrategy(org.eclipse.jface.viewers.AbstractTableViewer tableViewer)
ColumnViewerEditorActivationStrategy
for the given table viewer.tableViewer
- the target table viewer.public void dispose()
dispose
in class org.eclipse.swt.widgets.Widget
public abstract void addColumnListener(org.eclipse.swt.events.ControlListener columnlistener)
column listener
.columnlistener
- the listener to addpublic abstract TableControl getTableControl()
TableControl
.public abstract void setComparator(TableViewerComparator comparator, List<Integer> sortableColumns)
comparator
- the TableViewerComparator
to setsortableColumns
- the list of columns that can be sortedCopyright © 2016. All rights reserved.