code: 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());
  	}
docs: Additional code to execute when attaching a button.
  
  @param button the button that has been attached.