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.Composite
createButtonComposite(org.eclipse.swt.widgets.Composite parentComposite)
Creates and returns the button composite used by this table viewer.void
createCompositeLayout(org.eclipse.swt.widgets.Composite parent)
Called to create thecomposites
.protected org.eclipse.swt.widgets.Label
createTitleLabel(org.eclipse.swt.widgets.Composite parentComposite, org.eclipse.swt.graphics.Color background)
Returns theLabel
displaying the table viewer's label.protected org.eclipse.swt.widgets.Label
createValidationLabel(org.eclipse.swt.widgets.Composite topComposite)
Called to create the validation label.protected org.eclipse.swt.widgets.Composite
createViewerComposite(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.Composite
getViewerComposite()
-
-
-
Method Detail
-
createCompositeLayout
public void createCompositeLayout(org.eclipse.swt.widgets.Composite parent)
Description copied from interface:TableViewerCompositeBuilder
Called to create thecomposites
.- Specified by:
createCompositeLayout
in 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 theLabel
displaying 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:
getTitleLabel
in interfaceTableViewerCompositeBuilder
- Returns:
- the title
Label
if available
-
getValidationControls
public Optional<java.util.List<org.eclipse.swt.widgets.Control>> getValidationControls()
Description copied from interface:TableViewerCompositeBuilder
- Specified by:
getValidationControls
in interfaceTableViewerCompositeBuilder
- Returns:
- the list of validation
controls
.
-
getButtonComposite
public Optional<org.eclipse.swt.widgets.Composite> getButtonComposite()
Description copied from interface:TableViewerCompositeBuilder
- Specified by:
getButtonComposite
in interfaceTableViewerCompositeBuilder
- Returns:
- the parent
Composite
forcontrol-buttons
.
-
getViewerComposite
public org.eclipse.swt.widgets.Composite getViewerComposite()
Description copied from interface:TableViewerCompositeBuilder
- Specified by:
getViewerComposite
in interfaceTableViewerCompositeBuilder
- Returns:
- the parent
Composite
for theTableViewer
.
-
-