public void setEnabled ( boolean enabled ) { this . enabled = enabled ; if ( enabled ) { DOM . setElementProperty ( lineElement , "className" , SLIDER_LINE ) ; } else { DOM . setElementProperty ( lineElement , "className" , SLIDER_LINE + " " + SLIDER_LINE_DISABLED ) ; } redraw ( ) ; }
Sets whether this widget is enabled .