public Slider setAnimate ( AnimateEnum animate ) { if ( animate . equals ( AnimateEnum . FAST ) ) this . options . put ( "animate" , SliderAnimate . FAST ) ; else if ( animate . equals ( AnimateEnum . NORMAL ) ) this . options . put ( "animate" , SliderAnimate . NORMAL ) ; else if ( animate . equals ( AnimateEnum . SLOW ) ) this . options . put ( "animate" , SliderAnimate . SLOW ) ; else unsetAnimate ( ) ; return this ; }
Whether to slide handle smoothly when user click outside handle on the bar . Sets the animate using enum constants .