Package com.extjs.gxt.ui.client.widget

Examples of com.extjs.gxt.ui.client.widget.MessageBox.show()


    ((Button) box.getDialog().getButtonBar().getItem(0)).setText(messages.yes());
    box.setIcon(MessageBox.QUESTION);
    box.setTitle(title);
    box.addCallback(callback);
    box.setMessage(message);
    box.show();
    return box;
  }

  protected static LayoutContainer createContainer() {
    LayoutContainer container = new LayoutContainer();
View Full Code Here


    deleteButton.setTitle(messages.delete());
    deleteButton.addClickHandler(new ClickHandler() {
      @Override
      public void onClick(ClickEvent event) {
        MessageBox box = createConfirmBox(callback, messages.deleteConfirmTitle(), messages.deleteConfirmMessage());
        box.show();
      }
    });

    return deleteButton;
  }
View Full Code Here

        box.setButtons(MessageBox.YESNOCANCEL);
        box.setIcon(MessageBox.QUESTION);
        box.setTitle("Save Changes?");
        box.addCallback(l);
        box.setMessage("You are closing a tab that has unsaved changes. Would you like to save your changes?");
        box.show();
      }
    }));

    buttonBar.add(new Button("Progress", new SelectionListener<ButtonEvent>() {
      public void componentSelected(ButtonEvent ce) {
View Full Code Here

      MessageBox box = new MessageBox();
      box.setButtons(MessageBox.OK);
      box.setIcon(MessageBox.INFO);
      box.setTitle("Information");
      box.setMessage("No service detected");
      box.show();
      return;
    }

    FlowLayout layout = new FlowLayout(10);
    setLayout(layout);
View Full Code Here

                                                }
                                            });
                                        }
                                    }
                                });
                                box.show();

                            }

                            public void onApplicationFailure(Throwable caught) {
                                com.google.gwt.user.client.Window.alert("Cannot get status: " + caught.getMessage());
View Full Code Here

                       
                        @Override
                        public void onSuccess(Void result)
                        {
                            setVisible(false);
                            mb.show();
                        }
                       
                        @Override
                        public void onFailure(Throwable caught)
                        {
View Full Code Here

            && be.buttonClicked.getItemId().equals(Dialog.OK)) {
          createAndAddNode(((MessageBoxEvent) be).value);
        }
      }
    });
    prompt.show();
  }
 
  private final boolean pressedEnter(int keyCode) {
    return keyCode == 13; //KeyboardListener.KEY_ENTER;
  }
View Full Code Here

      box.setTitle(title);
      box.setMessage(msg);
      box.addCallback(callback);
      box.setIcon(MessageBox.QUESTION);
      box.setButtons(MessageBox.YESNOCANCEL);
      box.show();
      return box;
    }
 
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.