Class StringListSwtParameter

  • All Implemented Interfaces:
    SwtParameter<java.lang.String>

    public class StringListSwtParameter
    extends BaseSwtParameter<StringListSwtParameter,​java.lang.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 Detail

      • lblSuffix

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

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

        private final java.lang.String[] values
      • useCombo

        private final boolean useCombo
    • Constructor Detail

      • StringListSwtParameter

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

        public StringListSwtParameter​(org.eclipse.swt.widgets.Composite composite,
                                      java.lang.String paramID,
                                      java.lang.String labelKey,
                                      java.lang.String suffixLabelKey,
                                      java.lang.String[] values,
                                      java.lang.String[] displayStrings,
                                      boolean bUseCombo,
                                      SwtParameterValueProcessor<StringListSwtParameter,​java.lang.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