public static class LabeledControl.Series extends Object
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
containsControl(org.eclipse.swt.widgets.Control control) |
void |
hide(org.eclipse.swt.widgets.Control control) |
void |
hideAll() |
void |
layout()
Top/down layout
|
void |
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) |
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)
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.public void hideAll()
public void hide(org.eclipse.swt.widgets.Control control)
public void show(org.eclipse.swt.widgets.Control control)
public void layout()
public void layout(int height, int width, int numcols)
This acts a lot like GridLayout, but plays nicely when embedded in a FormLayout. Also accommodates wide controls that extend over multiple columns.
public boolean containsControl(org.eclipse.swt.widgets.Control control)
Copyright © 2019 Hitachi Vantara. All rights reserved.