Class IntListSwtParameter

All Implemented Interfaces:
SwtParameter<Integer>

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

Will always use 2 horizontal spaces in GridLayout

  • Field Details

    • list

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

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

      private final int[] values
  • Constructor Details

    • IntListSwtParameter

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

      public IntListSwtParameter(org.eclipse.swt.widgets.Composite composite, String configID, String labelKey, String suffixLabelKey, int[] values, String[] displayStrings, SwtParameterValueProcessor<IntListSwtParameter,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
      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
      paramID - ID of the parameter (usually config id)
  • Method Details