public static void bindEnabled ( Value < Boolean > value , final FocusWidget ... targets ) { value . addListenerAndTrigger ( new Value . Listener < Boolean > ( ) { public void valueChanged ( Boolean enabled ) { for ( FocusWidget target : targets ) { target . setEnabled ( enabled ) ; } } } ) ; }
Binds the enabledness state of the target widget to the supplied boolean value .