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