Class IntRadioListSwtParameter

All Implemented Interfaces:
SwtParameter<Integer>

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

Will always use 2 horizontal spaces in GridLayout

  • Field Details

    • cHolder

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

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

      private final int[] values
  • Constructor Details

    • IntRadioListSwtParameter

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

      public IntRadioListSwtParameter(org.eclipse.swt.widgets.Composite composite, String paramID, String labelKey, int[] values, String[] displayStrings, boolean compact, SwtParameterValueProcessor<IntRadioListSwtParameter,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
  • Method Details