Examples of MyDialog


Examples of org.mmisw.orrportal.gwt.client.util.MyDialog

   
    createOntologyInfo.setUri(ontologyInfo.getUri());

    Orr.log(CLASS_NAME+": reviewAndRegisterNewOntology starting.  HostingType: " +createOntologyInfo.getHostingType());
   
    final MyDialog popup = new MyDialog(null);
    popup.addTextArea(null).setSize("600", "150");
    popup.getTextArea().setText("please wait ...");
    PortalControl.getInstance().notifyActivity(true);
    popup.setText("Creating ontology ...");
    popup.center();
    popup.show();

    AsyncCallback<CreateOntologyResult> callback = new AsyncCallback<CreateOntologyResult>() {
      public void onFailure(Throwable thr) {
        PortalControl.getInstance().notifyActivity(false);
        Window.alert(thr.toString());
View Full Code Here

Examples of org.mmisw.orrportal.gwt.client.util.MyDialog

  private void doRegister(MyDialog createPopup, CreateOntologyResult createOntologyResult) {
   
    createPopup.hide();
   
    final MyDialog popup = new MyDialog(null);
    popup.addTextArea(null).setText("please wait ...");
    popup.getTextArea().setSize("600", "150");
   
    Orr.log(CLASS_NAME+": Registering ontology ...");
    popup.setText("Registering ontology ...");
    popup.center();
    popup.show();


    AsyncCallback<RegisterOntologyResult> callback = new AsyncCallback<RegisterOntologyResult>() {
      public void onFailure(Throwable thr) {
        Window.alert(thr.toString());
View Full Code Here

Examples of org.mmisw.orrportal.gwt.client.util.MyDialog

    }
   
    String msg = sb.toString();
    Orr.log(CLASS_NAME+": Registration result: " +msg);

    final MyDialog popup = new MyDialog(null);
    popup.setCloseButtonText("Return to ontology list");
    popup.setText(error == null ? "Registration completed sucessfully" : "Error");
    popup.addTextArea(null).setText(msg);
    popup.getTextArea().setSize("600", "150");
   
    popup.getDockPanel().add(vp, DockPanel.NORTH);
    popup.center();
   
    popup.addPopupListener(new PopupListener() {
      public void onPopupClosed(PopupPanel sender, boolean autoClosed) {
        PortalControl.getInstance().completedRegisterOntologyResult(uploadOntologyResult);
      }
    });
    popup.show();
  }
View Full Code Here

Examples of org.mmisw.orrportal.gwt.client.util.MyDialog

   
    createOntologyInfo.setUri(ontologyInfo.getUri());

    Orr.log(CLASS_NAME+": reviewAndRegisterVersionOntology starting.  HostingType: " +createOntologyInfo.getHostingType());
   
    final MyDialog popup = new MyDialog(null);
    popup.addTextArea(null).setSize("600", "150");
    popup.getTextArea().setText("please wait ...");
    PortalControl.getInstance().notifyActivity(true);
    popup.setText("Creating version of ontology ...");
    popup.center();
    popup.show();

    AsyncCallback<CreateOntologyResult> callback = new AsyncCallback<CreateOntologyResult>() {
      public void onFailure(Throwable thr) {
        PortalControl.getInstance().notifyActivity(false);
        Window.alert(thr.toString());
View Full Code Here

Examples of org.mmisw.orrportal.gwt.client.util.MyDialog

  private void doRegister(MyDialog createPopup, CreateOntologyResult createOntologyResult) {
   
    createPopup.hide();
   
    final MyDialog popup = new MyDialog(null);
    popup.addTextArea(null).setText("please wait ...");
    popup.getTextArea().setSize("600", "150");
   
    Orr.log(CLASS_NAME+": Registering new version of ontology ...");
    popup.setText("Registering new version of ontology ...");
    popup.center();
    popup.show();


    AsyncCallback<RegisterOntologyResult> callback = new AsyncCallback<RegisterOntologyResult>() {
      public void onFailure(Throwable thr) {
        Window.alert(thr.toString());
View Full Code Here

Examples of org.mmisw.orrportal.gwt.client.util.MyDialog

    }
   
    String msg = sb.toString();
    Orr.log(CLASS_NAME+": Registration result: " +msg);

    final MyDialog popup = new MyDialog(null);
    popup.setCloseButtonText("Return to ontology list");
    popup.setText(error == null ? "Registration of new version completed sucessfully" : "Error");
    popup.addTextArea(null).setText(msg);
    popup.getTextArea().setSize("600", "150");
   
    popup.getDockPanel().add(vp, DockPanel.NORTH);
    popup.center();
   
    popup.addPopupListener(new PopupListener() {
      public void onPopupClosed(PopupPanel sender, boolean autoClosed) {
        PortalControl.getInstance().completedRegisterOntologyResult(uploadOntologyResult);
      }
    });
    popup.show();
  }
View Full Code Here

Examples of org.mmisw.orrportal.gwt.client.util.MyDialog

   * @param left
   * @param top
  */
  void promptUserUri(int left, int top) {
    final TextBoxBase textBox = new TextBox();
    final MyDialog popup = new MyDialog(textBox) {
      public boolean onKeyUpPreview(char key, int modifiers) {
        // avoid ENTER from closing the popup without proper reaction
        if ( key == KeyboardListener.KEY_ESCAPE ) {
          hide();      // only ESCAPE keystroke closes the popup
          return false;
        }
       
        if ( key == KeyboardListener.KEY_ENTER ) {
          String str = textBox.getText().trim();
          _processAccept(str, this);
        }
          return true;
        }
    };
    popup.setText("Specify the namespace root for the ontology URI");
   
    textBox.setWidth("300");
    if ( namespaceRoot != null ) {
      textBox.setText(namespaceRoot);
    }

    popup.getButtonsPanel().insert(
        new PushButton("OK", new ClickListener() {
          public void onClick(Widget sender) {
            String str = textBox.getText().trim();
            _processAccept(str, popup);
          }
        })
        , 0
    );

    if ( userGiven ) {
      popup.getButtonsPanel().insert(
          new PushButton("Revert to default", new ClickListener() {
            public void onClick(Widget sender) {
              userGiven = false;
              namespaceRoot = defaultNameSpace;
              update();
              popup.hide();
            }
          })
          , 0
      );
    }
   
    popup.setPopupPosition(left, top + 20);
    new Timer() { @Override
      public void run() {
        textBox.setFocus(true);
      }
    }.schedule(180);
   
    popup.show();

  }
View Full Code Here

Examples of org.mmisw.orrportal.gwt.client.util.MyDialog

    VerticalPanel vp = new VerticalPanel();
    vp.setWidth("400");
    vp.setSpacing(10);
    vp.add(table);
    vp.add(new HTML(DIFF_MARK+ "= Metadata attribute with different, non-blank values."));
    final MyDialog popup = new MyDialog(vp);
    popup.setText("Metadata values from the two sources");
    popup.center();
    popup.show();
  }
View Full Code Here

Examples of org.mmisw.orrportal.gwt.client.util.MyDialog

    vp.add(new HTML("This table shows an initial evaluation of the loaded ontology in relation " +
        "to the required MMI attributes. " +
        "It shows any included MMI attribute as well as those that are missing but " +
        "required. Use the Metadata section to edit all attributes as necessary."));
    vp.add(table);
    final MyDialog popup = new MyDialog(vp);
    popup.setText("Diagnostics on original metadata");
    popup.center();
    popup.show();
  }
View Full Code Here

Examples of org.mmisw.orrportal.gwt.client.util.MyDialog

    vp.add(new HTML("This table shows an initial evaluation of the loaded ontology in relation " +
        "to the required MMI attributes. " +
        "It shows any included MMI attribute as well as those that are missing but " +
        "required. Use the Metadata section to edit all attributes as necessary."));
    vp.add(table);
    final MyDialog popup = new MyDialog(vp);
    popup.setText("Diagnostics on original metadata");
    popup.center();
    popup.show();
  }
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.