code: protected CmsPushButton createButton(String text, ButtonColor color, final String result) {
  
          CmsPushButton button = new CmsPushButton();
          button = new CmsPushButton();
          button.setText(text);
          button.setUseMinWidth(true);
          button.setButtonStyle(ButtonStyle.TEXT, color);
          button.addClickHandler(new ClickHandler() {
  
              public void onClick(ClickEvent e) {
  
                  CmsCreateModeSelectionDialog.this.hide();
                  m_callback.onSuccess(result);
              }
          });
          return button;
  
      }
docs: Creates a button used to select a create mode.<p>
  
  @param text the button text
  @param color the button color
  @param result the create mode selected by the button
  
  @return the newly created button