protected void onButtonAttached ( AbstractButton button ) { if ( logger . isDebugEnabled ( ) ) { logger . debug ( "Configuring newly attached button for command '" + getId ( ) + "' enabled=" + isEnabled ( ) + ", visible=" + isVisible ( ) ) ; } button . setEnabled ( isEnabled ( ) ) ; button . setVisible ( isVisible ( ) ) ; }
Additional code to execute when attaching a button .