public void setMin ( BigDecimal min ) { if ( min . compareTo ( max ) > 0 ) throw new IllegalArgumentException ( "min can't be > max" ) ; this . min = min ; if ( min . compareTo ( BigDecimal . ZERO ) >= 0 ) { textFieldFilter . setAcceptNegativeValues ( false ) ; } else { textFieldFilter . setAcceptNegativeValues ( true ) ; } if ( current . compareTo ( min ) < 0 ) { current = min . setScale ( scale , BigDecimal . ROUND_HALF_UP ) ; spinner . notifyValueChanged ( spinner . isProgrammaticChangeEvents ( ) ) ; } }
Sets min value . If current is lesser than min the current value is set to min value