Class LabeledControl.Series

    • Constructor Summary

      Constructors 
      Constructor 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.
    • Constructor Detail

      • 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 LabeledControls
        labelTexts - The list of label texts, required to be one text per control.
        controls - The set of controls in the series
        controlWidths - The widths of each control in the series.
        props - PropsUI to apply.
    • Method Detail

      • 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)