code: public Dialog setButtons(ArrayItemOptions<DialogButton> buttons)
  	{
  		for (DialogButton button : buttons)
  		{
  			if (button instanceof AjaxDialogButton)
  			{
  				((AjaxDialogButton) button).activateCallback(ajaxBehavior);
  			}
  		}
  		this.options.put("buttons", buttons);
  		return this;
  	}
docs: Set's a list of dialog button
  
  @param buttons
  @return instance of the current component