Package adams.gui.goe

Class AbstractNumberEditor

    • Field Detail

      • m_CurrentValue

        protected Number m_CurrentValue
        the current value.
      • m_DefaultValue

        protected Number m_DefaultValue
        the default value. May get ignored by the concrete editor.
      • m_LowerBound

        protected Number m_LowerBound
        the lower bound.
      • m_UpperBound

        protected Number m_UpperBound
        the upper bound.
    • Constructor Detail

      • AbstractNumberEditor

        public AbstractNumberEditor()
        Initializes the editor.
    • Method Detail

      • setDefaultValue

        public void setDefaultValue​(Number value)
        Sets the default value. May get ignored by the concrete editor.
        Parameters:
        value - the default value
      • getDefaultValue

        public Number getDefaultValue()
        Returns the default value.
        Returns:
        the default value
      • setLowerBound

        public void setLowerBound​(Number value)
        Sets the optional lower bound.
        Parameters:
        value - the lower bound to use, use null to use no bound
      • getLowerBound

        public Number getLowerBound()
        Returns the optional lower bound.
        Returns:
        the lower bound, can be null if none set
      • setUpperBound

        public void setUpperBound​(Number upper)
        Sets the optional upper bound.
        Parameters:
        upper - the upper bound to use, use null to use no bound
      • getUpperBound

        public Number getUpperBound()
        Returns the optional upper bound.
        Returns:
        the upper bound, can be null if none set
      • updateBounds

        protected abstract void updateBounds()
        Updates the bounds.