Class FloatSwtParameter

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

    public class FloatSwtParameter
    extends BaseSwtParameter<FloatSwtParameter,​java.lang.Float>
    SWT Parameter representing a Float value

    Will always use 2 horizontal spaces in GridLayout

    • Field Detail

      • df

        private final java.text.DecimalFormat df
      • inputField

        private final org.eclipse.swt.widgets.Text inputField
      • lblSuffix

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

        private float fMinValue
      • fMaxValue

        private float fMaxValue
      • allowZero

        private boolean allowZero
    • Constructor Detail

      • FloatSwtParameter

        public FloatSwtParameter​(org.eclipse.swt.widgets.Composite composite,
                                 FloatParameterImpl pluginParam)
      • FloatSwtParameter

        public FloatSwtParameter​(org.eclipse.swt.widgets.Composite composite,
                                 java.lang.String paramID,
                                 java.lang.String labelKey,
                                 java.lang.String suffixLabelKey,
                                 float minValue,
                                 float maxValue,
                                 boolean allowZero,
                                 int digitsAfterDecimal,
                                 SwtParameterValueProcessor<FloatSwtParameter,​java.lang.Float> valueProcessor)
        Make a float value selecting ui.

        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. null for no label, "" to allocate blank label
        suffixLabelKey - Messagebundle key for text shown after the text box null for no suffix label, "" to allocate blank suffix label
        valueProcessor - null if you want to use COConfigurationManager