Class IntListSwtParameter

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

    public class IntListSwtParameter
    extends BaseSwtParameter<IntListSwtParameter,​java.lang.Integer>
    SWT Parameter for selecting from a list of int values Displayed as Combo box.

    Will always use 2 horizontal spaces in GridLayout

    • Field Detail

      • list

        private final org.eclipse.swt.widgets.Combo list
      • lblSuffix

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

        private final int[] values
    • Constructor Detail

      • IntListSwtParameter

        public IntListSwtParameter​(org.eclipse.swt.widgets.Composite composite,
                                   IntListParameterImpl param)
      • IntListSwtParameter

        public IntListSwtParameter​(org.eclipse.swt.widgets.Composite composite,
                                   java.lang.String configID,
                                   java.lang.String labelKey,
                                   java.lang.String suffixLabelKey,
                                   int[] values,
                                   java.lang.String[] displayStrings,
                                   SwtParameterValueProcessor<IntListSwtParameter,​java.lang.Integer> valueProcessor)
        Make UI components for a list of int 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
        valueProcessor - null if you want to use COConfigurationManager