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)
TableViewerCompositeBuildercomposites.createCompositeLayout in interface TableViewerCompositeBuilderparent - 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()
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.Copyright © 2020. All rights reserved.