Class IntSwtParameter

    • Field Detail

      • valueWhenBlank

        private int valueWhenBlank
      • colorHidden

        private org.eclipse.swt.graphics.Color colorHidden
      • lblSuffix

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

        private int iMinValue
      • iMaxValue

        private int iMaxValue
      • bTriggerOnFocusOut

        private boolean bTriggerOnFocusOut
      • spinner

        private final org.eclipse.swt.widgets.Spinner spinner
      • timedSaveEvent

        private TimerEvent timedSaveEvent
      • isZeroHidden

        private boolean isZeroHidden
      • disableTimedSave

        private boolean disableTimedSave
    • Constructor Detail

      • IntSwtParameter

        public IntSwtParameter​(org.eclipse.swt.widgets.Composite composite,
                               IntParameterImpl param)
      • IntSwtParameter

        public IntSwtParameter​(org.eclipse.swt.widgets.Composite composite,
                               java.lang.String paramID,
                               java.lang.String labelKey,
                               java.lang.String suffixKey,
                               SwtParameterValueProcessor<IntSwtParameter,​java.lang.Integer> valueProcessor)
      • IntSwtParameter

        public IntSwtParameter​(org.eclipse.swt.widgets.Composite composite,
                               java.lang.String paramID,
                               java.lang.String labelKey,
                               java.lang.String suffixLabelKey,
                               int minValue,
                               int maxValue,
                               SwtParameterValueProcessor<IntSwtParameter,​java.lang.Integer> valueProcessor)
        Make a int 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 Detail

      • cancelTimedSaveEvent

        private void cancelTimedSaveEvent()
      • setMinimumValue

        public void setMinimumValue​(int value)
      • setMaximumValue

        public void setMaximumValue​(int value)
      • getIntValue

        public int getIntValue()
      • disableTimedSave

        public void disableTimedSave()
      • isZeroHidden

        public boolean isZeroHidden()
      • setZeroHidden

        public void setZeroHidden​(boolean isZeroHidden)
      • setSuffixLabelKey

        public void setSuffixLabelKey​(java.lang.String suffixLabelKey)
      • setSuffixLabelText

        public void setSuffixLabelText​(java.lang.String text)