Hi all,
I have the following statment:

Code:
if(confirmMessageBox.getHideButton()== confirmMessageBox.getButtonById(PredefinedButton.YES.name())){
And that is wrong, because i have to use equals instead of the operator ==.
(confirmMessageBox.getHideButton() is an object not a primitive).

I'm using sencha GXT 3.0.1, but the help on eclipse tell me to use.
Code:
com.sencha.gxt.widget.core.client.box.ConfirmMessageBox




A message box that prompts for confirmation with YES and NO buttons.  
 Code snippet:   
    final ConfirmMessageBox mb = new ConfirmMessageBox("Confirmation Required", "Are you ready?");
    mb.addHideHandler(new HideHandler() {
      public void onHide(HideEvent event) {
        if (mb.getHideButton() == mb.getButtonById(PredefinedButton.YES.name())) {
          // perform YES action
        } else if (mb.getHideButton() == mb.getButtonById(PredefinedButton.NO.name())){
          // perform NO action
        }
      }
    });
    mb.setWidth(300);
    mb.show();
some one is able to explain me why, and also in the page:
https://docs.sencha.com/gxt/3.x/java...w-summary.html

there is no
getHideButton() method? is a bug? or not?

Thanks
Francesco
Italy