Package org.pentaho.di.ui.core.widget
Class LabeledControl.Series
java.lang.Object
org.pentaho.di.ui.core.widget.LabeledControl.Series
- Enclosing class:
- LabeledControl
-
Constructor Summary
ConstructorDescriptionSeries
(org.eclipse.swt.widgets.Composite parent, org.eclipse.swt.widgets.Control prevControl, List<String> labelTexts, List<org.eclipse.swt.widgets.Control> controls, List<Integer> controlWidths, PropsUI props) Creates a series of LabeledControls, managing vertical layout between each. -
Method Summary
Modifier and TypeMethodDescriptionboolean
containsControl
(org.eclipse.swt.widgets.Control control) void
hide
(org.eclipse.swt.widgets.Control control) void
hideAll()
void
layout()
Top/down layoutvoid
layout
(int height, int width, int numcols) performs layout in a grid assuming the available space is within given bounds.void
show
(org.eclipse.swt.widgets.Control control)
-
Constructor Details
-
Series
public Series(org.eclipse.swt.widgets.Composite parent, org.eclipse.swt.widgets.Control prevControl, List<String> labelTexts, List<org.eclipse.swt.widgets.Control> controls, List<Integer> controlWidths, PropsUI props) Creates a series of LabeledControls, managing vertical layout between each.- Parameters:
prevControl
- The swt control above the series of LabeledControlslabelTexts
- The list of label texts, required to be one text per control.controls
- The set of controls in the seriescontrolWidths
- The widths of each control in the series.props
- PropsUI to apply.
-
-
Method Details
-
hideAll
public void hideAll() -
hide
public void hide(org.eclipse.swt.widgets.Control control) -
show
public void show(org.eclipse.swt.widgets.Control control) -
layout
public void layout()Top/down layout -
layout
public void layout(int height, int width, int numcols) performs layout in a grid assuming the available space is within given bounds. Lays out top down, left to right.This acts a lot like GridLayout, but plays nicely when embedded in a FormLayout. Also accommodates wide controls that extend over multiple columns.
-
containsControl
public boolean containsControl(org.eclipse.swt.widgets.Control control)
-