public class CompactVerticallyTableViewerCompositeBuilder extends Object implements TableViewerCompositeBuilder
TableViewerCompositeBuilder
.Constructor and Description |
---|
CompactVerticallyTableViewerCompositeBuilder(boolean createTitleLabel,
boolean createValidationLabel)
Constructor.
|
Modifier and Type | Method and 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 the
composites . |
protected org.eclipse.swt.widgets.Label |
createTitleLabel(org.eclipse.swt.widgets.Composite parentComposite,
org.eclipse.swt.graphics.Color background)
Returns the
Label 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<List<org.eclipse.swt.widgets.Control>> |
getValidationControls()
|
org.eclipse.swt.widgets.Composite |
getViewerComposite()
|
public CompactVerticallyTableViewerCompositeBuilder(boolean createTitleLabel, boolean createValidationLabel)
createTitleLabel
- indicates whether to create a title label.createValidationLabel
- indicates whether to create a validation label.public void createCompositeLayout(org.eclipse.swt.widgets.Composite parent)
TableViewerCompositeBuilder
composites
.createCompositeLayout
in interface TableViewerCompositeBuilder
parent
- the parentprotected org.eclipse.swt.widgets.Label createTitleLabel(org.eclipse.swt.widgets.Composite parentComposite, org.eclipse.swt.graphics.Color background)
Label
displaying the table viewer's label. Can be overwritten to customize the label's
appearance.parentComposite
- The parent composite of the created labelbackground
- The background color of the labelprotected org.eclipse.swt.widgets.Composite createButtonComposite(org.eclipse.swt.widgets.Composite parentComposite)
parentComposite
- The composite that will contain the button compositeprotected org.eclipse.swt.widgets.Composite createViewerComposite(org.eclipse.swt.widgets.Composite composite)
composite
- the parentprotected org.eclipse.swt.widgets.Label createValidationLabel(org.eclipse.swt.widgets.Composite topComposite)
topComposite
- the parentpublic Optional<org.eclipse.swt.widgets.Label> getTitleLabel()
TableViewerCompositeBuilder
getTitleLabel
in interface TableViewerCompositeBuilder
Label
if availablepublic Optional<List<org.eclipse.swt.widgets.Control>> getValidationControls()
TableViewerCompositeBuilder
getValidationControls
in interface TableViewerCompositeBuilder
controls
.public Optional<org.eclipse.swt.widgets.Composite> getButtonComposite()
TableViewerCompositeBuilder
getButtonComposite
in interface TableViewerCompositeBuilder
Composite
for control-buttons
.public org.eclipse.swt.widgets.Composite getViewerComposite()
TableViewerCompositeBuilder
getViewerComposite
in interface TableViewerCompositeBuilder
Composite
for the TableViewer
.Copyright © 2020. All rights reserved.