Class IntRadioListSwtParameter

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

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

    Will always use 2 horizontal spaces in GridLayout

    • Field Detail

      • cHolder

        private final org.eclipse.swt.widgets.Composite cHolder
      • radios

        private final org.eclipse.swt.widgets.Button[] radios
      • values

        private final int[] values
    • Constructor Detail

      • IntRadioListSwtParameter

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

        public IntRadioListSwtParameter​(org.eclipse.swt.widgets.Composite composite,
                                        java.lang.String paramID,
                                        java.lang.String labelKey,
                                        int[] values,
                                        java.lang.String[] displayStrings,
                                        boolean compact,
                                        SwtParameterValueProcessor<IntRadioListSwtParameter,​java.lang.Integer> valueProcessor)
        Make UI components for a list of in values, displayed as radio buttons

        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
        values - list of values that can be stored
        displayStrings - fancy words representing each value
        compact - true - all in one wrappable row; false - one option per row
        valueProcessor - null if you want to use COConfigurationManager