Class FloatSwtParameter

All Implemented Interfaces:
SwtParameter<Float>

public class FloatSwtParameter extends BaseSwtParameter<FloatSwtParameter,Float>
SWT Parameter representing a Float value

Will always use 2 horizontal spaces in GridLayout

  • Field Details

    • df

      private final 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 Details

    • FloatSwtParameter

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

      public FloatSwtParameter(org.eclipse.swt.widgets.Composite composite, String paramID, String labelKey, String suffixLabelKey, float minValue, float maxValue, boolean allowZero, int digitsAfterDecimal, SwtParameterValueProcessor<FloatSwtParameter,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
  • Method Details