Class StringListSwtParameter

All Implemented Interfaces:
SwtParameter<String>

public class StringListSwtParameter extends BaseSwtParameter<StringListSwtParameter,String>
SWT Parameter for selecting from a list of String values Displayed as Combo box or list box.

Will always use 2 horizontal spaces in GridLayout

  • Field Details

    • lblSuffix

      private org.eclipse.swt.widgets.Label lblSuffix
    • list

      private final org.eclipse.swt.widgets.Control list
    • values

      private final String[] values
    • useCombo

      private final boolean useCombo
  • Constructor Details

    • StringListSwtParameter

      public StringListSwtParameter(org.eclipse.swt.widgets.Composite parent, StringListParameterImpl param)
    • StringListSwtParameter

      public StringListSwtParameter(org.eclipse.swt.widgets.Composite composite, String paramID, String labelKey, String suffixLabelKey, String[] values, String[] displayStrings, boolean bUseCombo, SwtParameterValueProcessor<StringListSwtParameter,String> valueProcessor)
      Make UI components for a list of String values

      When parent composite is of GridLayout, resulting new widgets will take 2 columns

      Parameters:
      composite - Where widgets will be placed. Composite is not altered
      paramID - ID of the parameter (usually config id)
      labelKey - Messagebundle key for the text shown before text box
      suffixLabelKey - Messagebundle key for text shown after the text box
      values - list of values that can be stored
      displayStrings - fancy words representing each value
      bUseCombo - true - Combo; false - list box
      valueProcessor - null if you want to use COConfigurationManager
  • Method Details