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

Examples of com.extjs.gxt.ui.client.widget.MessageBox


import com.extjs.gxt.ui.client.widget.MessageBox;

public class MessageBoxUtils {
    public static MessageBox yesNoCancel(String title, String msg,
        Listener<WindowEvent> callback) {
      MessageBox box = new MessageBox();
      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


   
    MenuItem manuallySearchMatch = new MenuItem("Manual Search");
    manuallySearchMatch.addSelectionListener(new SelectionListener<MenuEvent>(){
      @Override
      public void componentSelected(MenuEvent ce) {
          final MessageBox box = MessageBox.prompt("Manual Search", "Please enter your search query:")
          box.addCallback(new Listener<MessageBoxEvent>() { 
               public void handleEvent(MessageBoxEvent ce) { 
                 Dialog box = (Dialog) ce.getBoxComponent();
                 TextField<String> textField = (TextField<String>) box.getFocusWidget();
                       String query = (String) textField.getValue();

                       if(query.length() > 0){
                         Info.display("Notice", "Manual search for: {0}", new Params(query));
                        
View Full Code Here

    */
   public void onModuleLoad() { 
     // init outline
     final Outline outline = Outline.getInstance();
    
     final MessageBox box = MessageBox.wait("Initialization",
                     "Initializing TEI Comparator, please wait", "Initialization...")
    
    // initialize service
      InitializationServiceAsync initSvc = GWT.create(InitializationService.class);
    
      // perform server call
      initSvc.initializeTEIComparator( new AsyncCallback<Initialization>(){

      public void onFailure(Throwable caught) {
      }

      public void onSuccess(Initialization init) {
         // store initialization in client state
        ClientState.initialization = init;
       
        // init outline
        outline.init(init);
        
         // we are set up
         box.close();
      }
       
      } );
   }
View Full Code Here

TOP

Related Classes of com.extjs.gxt.ui.client.widget.MessageBox

Copyright © 2018 www.massapicom. 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.