Class DefaultTableViewerCompositeBuilder
- java.lang.Object
-
- org.eclipse.emfforms.spi.swt.table.DefaultTableViewerCompositeBuilder
-
- All Implemented Interfaces:
TableViewerCompositeBuilder
- Direct Known Subclasses:
TableControlSWTRenderer.TableControlSWTRendererCompositeBuilder
public class DefaultTableViewerCompositeBuilder extends java.lang.Object implements TableViewerCompositeBuilder
Default implementation of theTableViewerCompositeBuilder.- Author:
- Johannes Faltermeier
-
-
Constructor Summary
Constructors Constructor Description DefaultTableViewerCompositeBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.eclipse.swt.widgets.CompositecreateButtonComposite(org.eclipse.swt.widgets.Composite parentComposite)Creates and returns the button composite used by this table viewer.voidcreateCompositeLayout(org.eclipse.swt.widgets.Composite parent)Called to create thecomposites.protected org.eclipse.swt.widgets.LabelcreateTitleLabel(org.eclipse.swt.widgets.Composite parentComposite, org.eclipse.swt.graphics.Color background)Returns theLabeldisplaying the table viewer's label.protected org.eclipse.swt.widgets.LabelcreateValidationLabel(org.eclipse.swt.widgets.Composite topComposite)Called to create the validation label.protected org.eclipse.swt.widgets.CompositecreateViewerComposite(org.eclipse.swt.widgets.Composite composite)Called to create the composite for the table viewer.Optional<org.eclipse.swt.widgets.Composite>getButtonComposite()Optional<org.eclipse.swt.widgets.Label>getTitleLabel()Optional<java.util.List<org.eclipse.swt.widgets.Control>>getValidationControls()org.eclipse.swt.widgets.CompositegetViewerComposite()
-
-
-
Method Detail
-
createCompositeLayout
public void createCompositeLayout(org.eclipse.swt.widgets.Composite parent)
Description copied from interface:TableViewerCompositeBuilderCalled to create thecomposites.- Specified by:
createCompositeLayoutin interfaceTableViewerCompositeBuilder- Parameters:
parent- the parent
-
createTitleLabel
protected org.eclipse.swt.widgets.Label createTitleLabel(org.eclipse.swt.widgets.Composite parentComposite, org.eclipse.swt.graphics.Color background)Returns theLabeldisplaying the table viewer's label. Can be overwritten to customize the label's appearance.- Parameters:
parentComposite- The parent composite of the created labelbackground- The background color of the label- Returns:
- The title label
-
createButtonComposite
protected org.eclipse.swt.widgets.Composite createButtonComposite(org.eclipse.swt.widgets.Composite parentComposite)
Creates and returns the button composite used by this table viewer. Can be overwritten to customize the composite's appearance and placement.- Parameters:
parentComposite- The composite that will contain the button composite- Returns:
- The button composite
-
createViewerComposite
protected org.eclipse.swt.widgets.Composite createViewerComposite(org.eclipse.swt.widgets.Composite composite)
Called to create the composite for the table viewer.- Parameters:
composite- the parent- Returns:
- the composite
-
createValidationLabel
protected org.eclipse.swt.widgets.Label createValidationLabel(org.eclipse.swt.widgets.Composite topComposite)
Called to create the validation label.- Parameters:
topComposite- the parent- Returns:
- the label
-
getTitleLabel
public Optional<org.eclipse.swt.widgets.Label> getTitleLabel()
Description copied from interface:TableViewerCompositeBuilder- Specified by:
getTitleLabelin interfaceTableViewerCompositeBuilder- Returns:
- the title
Labelif available
-
getValidationControls
public Optional<java.util.List<org.eclipse.swt.widgets.Control>> getValidationControls()
Description copied from interface:TableViewerCompositeBuilder- Specified by:
getValidationControlsin interfaceTableViewerCompositeBuilder- Returns:
- the list of validation
controls.
-
getButtonComposite
public Optional<org.eclipse.swt.widgets.Composite> getButtonComposite()
Description copied from interface:TableViewerCompositeBuilder- Specified by:
getButtonCompositein interfaceTableViewerCompositeBuilder- Returns:
- the parent
Compositeforcontrol-buttons.
-
getViewerComposite
public org.eclipse.swt.widgets.Composite getViewerComposite()
Description copied from interface:TableViewerCompositeBuilder- Specified by:
getViewerCompositein interfaceTableViewerCompositeBuilder- Returns:
- the parent
Compositefor theTableViewer.
-
-