Class LabeledControl.Series

java.lang.Object
org.pentaho.di.ui.core.widget.LabeledControl.Series
Enclosing class:
LabeledControl

public static class LabeledControl.Series extends Object
  • 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.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    containsControl(org.eclipse.swt.widgets.Control control)
     
    void
    hide(org.eclipse.swt.widgets.Control control)
     
    void
     
    void
    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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 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 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)