Package com.google.gwt.user.client.ui

Examples of com.google.gwt.user.client.ui.HTML


    int row = 0;
   
    String ontologyUri = getWizard().getOntologyUri();
    assert ontologyUri != null;
   
    panel.setWidget(row, 0, new HTML(INFO_TEMPLATE.replaceFirst(ONT_URI, ontologyUri)));
    panel.getFlexCellFormatter().setAlignment(row, 0,
        HasHorizontalAlignment.ALIGN_LEFT, HasVerticalAlignment.ALIGN_MIDDLE
    );
    row++;
View Full Code Here


   */
  private void _refreshListAllOntologies(final MyDialog pePopup) {
    AsyncCallback<GetAllOntologiesResult> callback = new AsyncCallback<GetAllOntologiesResult>() {

      public void onFailure(Throwable thr) {
        RootPanel.get().add(new HTML(thr.toString()));
      }

      public void onSuccess(GetAllOntologiesResult result) {
        if ( result.getError() == null ) {
          List<RegisteredOntologyInfo> ontologyInfos = result.getOntologyList();
View Full Code Here

    hp.setSpacing(10);
   
    // TODO: why preloaded animated images don't animate? ...
    // (see http://groups.google.com/group/Google-Web-Toolkit-Contributors/browse_thread/thread/c6bc51da338262af)
//    hp.add(Main.images.loading().createImage());
    hp.add(new HTML(
      // ... workaround: insert it with img tag -- which does work, but that's not the idea
      "<img src=\"" +GWT.getModuleBaseURL()+ "images/loading.gif\">" +
      " Loading " +ontologyInfo.getUri()+
      " : <i>" +ontologyInfo.getDisplayLabel()+ "</i>" +
      "<br/>Please wait..."
    ));
    popup.setWidget(hp);
    popup.setText("Loading vocabulary...");
   
    AsyncCallback<RegisteredOntologyInfo> callback = new AsyncCallback<RegisteredOntologyInfo>() {
      public void onFailure(Throwable thr) {
        RootPanel.get().add(new HTML(thr.toString()));
        popup.hide();
      }

      public void onSuccess(RegisteredOntologyInfo ontologyInfo) {
        popup.setWidget(new HTML("Load complete"));
       
        Orr.log("getOntologyContents: " +ontologyInfo.getUri()+ " completed.");
       
        if ( ontologyInfo.getOntologyData() == null ) {
          Orr.log("getOntologyContents: unexpected: data not retrieved");
View Full Code Here

   */
  void addExternalOntology(final String ontologyUri, final MyDialog popup) {
    HorizontalPanel hp = new HorizontalPanel();
    hp.setSpacing(10);
   
    hp.add(new HTML(
      "<img src=\"" +GWT.getModuleBaseURL()+ "images/loading.gif\">" +
      " Loading " +ontologyUri+
      "<br/>Please wait..."
    ));
    popup.setWidget(hp);
    popup.setText("Loading ontology...");
   
    AsyncCallback<ExternalOntologyInfo> callback = new AsyncCallback<ExternalOntologyInfo>() {
      public void onFailure(Throwable thr) {
        popup.hide();
        Orr.log("calling getExternalOntologyInfo ... failure! ");
        String error = thr.getClass().getName()+ ": " +thr.getMessage();
        while ( (thr = thr.getCause()) != null ) {
          error += "\ncaused by: " +thr.getClass().getName()+ ": " +thr.getMessage();
        }
        Window.alert(error);
      }

      public void onSuccess(ExternalOntologyInfo ontologyInfo) {
        String error = ontologyInfo.getError();
        if (error != null) {
          Orr.log("calling getExternalOntologyInfo ... error=" + error);
          popup.setWidget(new Label(error));
          Window.alert("Error while trying to load '" +ontologyUri+ "':\n\n" + error);
        }
        else {
          Orr.log("calling getExternalOntologyInfo ... success");
          popup.setWidget(new HTML("Load complete"));
          notifyWorkingExternalOntologyAdded(ontSel, ontologyInfo);
        }
        popup.hide();
      }
    };
View Full Code Here

   
    if ( error == null ) {

      String uri = uploadOntologyResult.getUri();

      vp.add(new HTML("<font color=\"green\">Congratulations!</font> "
          + "The new version is now registered."
      ));
     
     
      vp.add(new HTML("<br/>The URI of the ontology is: "
//          + "<a href=\"" +uri+ "\">"
          + uri
//          + "</a>"
      ));
     
     
      vp.add(new HTML("<br/>For diagnostics, this is the response from the back-end server:"));

      sb.append(uploadOntologyResult.getInfo());
     
      // and, disable all editing fields/buttons:
      // (user will have to start from the "load" step)
View Full Code Here

    int row = 0;
   
    String ontologyUri = getWizard().getOntologyUri();
    assert ontologyUri != null;
   
    panel.setWidget(row, 0, new HTML(INFO_TEMPLATE.replaceFirst(ONT_URI, ontologyUri)));
    panel.getFlexCellFormatter().setAlignment(row, 0,
        HasHorizontalAlignment.ALIGN_LEFT, HasVerticalAlignment.ALIGN_MIDDLE
    );
    row++;
View Full Code Here

    int row = 0;
   
    String ontologyUri = getWizard().getOntologyUri();
    assert ontologyUri != null;
   
    panel.setWidget(row, 0, new HTML(INFO_TEMPLATE.replaceFirst(ONT_URI, ontologyUri)));
    panel.getFlexCellFormatter().setAlignment(row, 0,
        HasHorizontalAlignment.ALIGN_LEFT, HasVerticalAlignment.ALIGN_MIDDLE
    );
    row++;
View Full Code Here

   
    //TODO: put the GPS trace name and stats in the dialog too
   
    DialogBox dialogBox = new DialogBox();
    dialogBox.setText("Warning");
    dialogBox.setWidget(new HTML("The application is currently not available. Another user is matching GPS points to roads. Please reload the page again later."));
   
    //TODO: change to false for production
    dialogBox.setAutoHideEnabled(true);
   
    dialogBox.setGlassEnabled(true);
View Full Code Here

    panel.setWidth("100%");
    int row = 0;
   
    String ontServiceUrl = Orr.getPortalBaseInfo().getOntServiceUrl();
   
    panel.setWidget(row, 0, new HTML(INFO_TEMPLATE.replaceFirst(ONT_SERVICE_URL_FRAG, ontServiceUrl)));
    panel.getFlexCellFormatter().setAlignment(row, 0,
        HasHorizontalAlignment.ALIGN_LEFT, HasVerticalAlignment.ALIGN_MIDDLE
    );
    row++;
View Full Code Here

    dialog.center();
   
    dialog.setText("Waiting...");
   
    //TODO: set the HTML widget for the message;
    html = new HTML("insert message here");
    dialog.add(html);
   
    initWidget(dialog);

    dialog.hide();
View Full Code Here

TOP

Related Classes of com.google.gwt.user.client.ui.HTML

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.