T - the concrete table viewer implementation to usepublic class DefaultTableControlSWTCustomization<T extends org.eclipse.jface.viewers.AbstractTableViewer> extends Object implements TableViewerSWTCustomization<T>
TableViewerSWTCustomization.| Constructor and Description |
|---|
DefaultTableControlSWTCustomization() |
| Modifier and Type | Method and Description |
|---|---|
void |
addColumn(ColumnConfiguration columnConfiguration)
Adds a column to the table.
|
void |
configureTable(TableConfiguration tableConfiguration)
Sets the table configuration.
|
void |
createCompositeLayout(org.eclipse.swt.widgets.Composite parent)
Called to create the
composites. |
org.eclipse.jface.viewers.IContentProvider |
createContentProvider()
Returns the content provider to use.
|
T |
createTableViewer(org.eclipse.swt.widgets.Composite parent)
Creates the
AbstractTableViewer. |
Optional<ActionBar<T>> |
getActionBar()
Get the action bar instance (if it exists).
|
Optional<ActionConfiguration> |
getActionConfiguration()
Returns the action configuration which will be used to register defined key bindings on the viewer.
|
Optional<org.eclipse.swt.widgets.Composite> |
getButtonComposite()
|
List<ColumnConfiguration> |
getColumnConfigurations()
Returns the column configurations which will be used to configure columns.
|
Optional<org.eclipse.jface.viewers.ViewerComparator> |
getComparator()
Returns the comparator to use.
|
org.eclipse.swt.dnd.DragSourceListener |
getDragListener(org.eclipse.jface.viewers.AbstractTableViewer tableViewer)
Returns the
DragSourceListener used to setup the
drag support for the viewer. |
int |
getDragOperations()
Returns the drag operations bits used to setup the
drag support for the viewer. |
org.eclipse.swt.dnd.Transfer[] |
getDragTransferTypes()
Returns the drag transfer types used to setup the
drag support for the viewer. |
org.eclipse.swt.dnd.DropTargetListener |
getDropListener(org.eclipse.jface.viewers.AbstractTableViewer tableViewer)
Returns the
DragSourceListener used to setup the
drop support for the viewer. |
int |
getDropOperations()
Returns the drag operations bits used to setup the
drop support for the viewer. |
org.eclipse.swt.dnd.Transfer[] |
getDropTransferTypes()
Returns the drag transfer types used to setup the
drop support for the viewer. |
TableConfiguration |
getTableConfiguration()
Returns the table configuration which will be used to configure the table instance.
|
Optional<org.eclipse.swt.widgets.Label> |
getTitleLabel()
|
Optional<List<org.eclipse.swt.widgets.Control>> |
getValidationControls()
|
org.eclipse.swt.widgets.Composite |
getViewerComposite()
|
boolean |
hasDND()
Whether DND support should be added to the table.
|
void |
setActionBar(ActionBar<T> actionBar)
Allows the customize the
ActionBar. |
void |
setActionConfiguration(ActionConfiguration actionConfiguration)
Allows to customize the
ActionConfiguration. |
void |
setContentProvider(org.eclipse.jface.viewers.IContentProvider provider)
Allows the exchange the default
IContentProvider. |
void |
setDND(DNDProvider provider)
Allows the exchange the default
DNDProvider. |
void |
setTableViewerCompositeBuilder(TableViewerCompositeBuilder builder)
Allows the exchange the default
TableViewerCompositeBuilder. |
void |
setTableViewerCreator(TableViewerCreator<T> creator)
Allows the exchange the default
TableViewerCreator. |
void |
setViewerComparator(org.eclipse.jface.viewers.ViewerComparator comparator)
Allows the exchange the default
ViewerComparator. |
public void createCompositeLayout(org.eclipse.swt.widgets.Composite parent)
TableViewerCompositeBuildercomposites.createCompositeLayout in interface TableViewerCompositeBuilderparent - the parentpublic Optional<org.eclipse.swt.widgets.Label> getTitleLabel()
TableViewerCompositeBuildergetTitleLabel in interface TableViewerCompositeBuilderLabel if availablepublic Optional<List<org.eclipse.swt.widgets.Control>> getValidationControls()
TableViewerCompositeBuildergetValidationControls in interface TableViewerCompositeBuildercontrols.public Optional<org.eclipse.swt.widgets.Composite> getButtonComposite()
TableViewerCompositeBuildergetButtonComposite in interface TableViewerCompositeBuilderComposite for control-buttons.public org.eclipse.swt.widgets.Composite getViewerComposite()
TableViewerCompositeBuildergetViewerComposite in interface TableViewerCompositeBuilderComposite for the TableViewer.public T createTableViewer(org.eclipse.swt.widgets.Composite parent)
TableViewerCreatorAbstractTableViewer.createTableViewer in interface TableViewerCreator<T extends org.eclipse.jface.viewers.AbstractTableViewer>parent - the parent Compositepublic Optional<org.eclipse.jface.viewers.ViewerComparator> getComparator()
TableViewerSWTCustomizationgetComparator in interface TableViewerSWTCustomization<T extends org.eclipse.jface.viewers.AbstractTableViewer>ViewerComparator which will be set on the viewer, if presentpublic org.eclipse.jface.viewers.IContentProvider createContentProvider()
TableViewerSWTCustomizationcreateContentProvider in interface TableViewerSWTCustomization<T extends org.eclipse.jface.viewers.AbstractTableViewer>IContentProvider which will be set on the viewerpublic TableConfiguration getTableConfiguration()
TableViewerSWTCustomizationgetTableConfiguration in interface TableViewerSWTCustomization<T extends org.eclipse.jface.viewers.AbstractTableViewer>TableConfigurationpublic List<ColumnConfiguration> getColumnConfigurations()
TableViewerSWTCustomizationgetColumnConfigurations in interface TableViewerSWTCustomization<T extends org.eclipse.jface.viewers.AbstractTableViewer>ColumnConfigurationpublic void setTableViewerCompositeBuilder(TableViewerCompositeBuilder builder)
TableViewerCompositeBuilder.builder - the TableViewerCompositeBuilderpublic void setTableViewerCreator(TableViewerCreator<T> creator)
TableViewerCreator.creator - the TableViewerCreatorpublic void setViewerComparator(org.eclipse.jface.viewers.ViewerComparator comparator)
ViewerComparator.comparator - the ViewerComparatorpublic void setContentProvider(org.eclipse.jface.viewers.IContentProvider provider)
IContentProvider.provider - the IContentProviderpublic void setActionBar(ActionBar<T> actionBar)
ActionBar.actionBar - the ActionBarpublic Optional<ActionBar<T>> getActionBar()
getActionBar in interface ActionBarProvider<T extends org.eclipse.jface.viewers.AbstractTableViewer>public void configureTable(TableConfiguration tableConfiguration)
tableConfiguration - the TableConfigurationpublic void addColumn(ColumnConfiguration columnConfiguration)
columnConfiguration - the
ColumnDescriptionpublic Optional<ActionConfiguration> getActionConfiguration()
ActionConfigurationProvidergetActionConfiguration in interface ActionConfigurationProviderActionConfiguration, if anypublic void setActionConfiguration(ActionConfiguration actionConfiguration)
ActionConfiguration.actionConfiguration - The ActionConfigurationgetActionConfiguration()public void setDND(DNDProvider provider)
DNDProvider.provider - the DNDProviderpublic boolean hasDND()
DNDProviderhasDND in interface DNDProvidertrue if DND will be added, based on the other methods of this interface, or
false if DND should not be addedpublic int getDragOperations()
DNDProviderdrag support for the viewer.getDragOperations in interface DNDProviderpublic org.eclipse.swt.dnd.Transfer[] getDragTransferTypes()
DNDProviderdrag support for the viewer.getDragTransferTypes in interface DNDProvidertransfer typespublic org.eclipse.swt.dnd.DragSourceListener getDragListener(org.eclipse.jface.viewers.AbstractTableViewer tableViewer)
DNDProviderDragSourceListener used to setup the
drag support for the viewer.getDragListener in interface DNDProvidertableViewer - the AbstractTableViewerpublic int getDropOperations()
DNDProviderdrop support for the viewer.getDropOperations in interface DNDProviderpublic org.eclipse.swt.dnd.Transfer[] getDropTransferTypes()
DNDProviderdrop support for the viewer.getDropTransferTypes in interface DNDProvidertransfer typespublic org.eclipse.swt.dnd.DropTargetListener getDropListener(org.eclipse.jface.viewers.AbstractTableViewer tableViewer)
DNDProviderDragSourceListener used to setup the
drop support for the viewer.getDropListener in interface DNDProvidertableViewer - the AbstractTableViewerCopyright © 2019. All rights reserved.