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

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


  private HTML userNotice;
  private VerticalPanel panel;
 
  public void onModuleLoad() {
   
    userNotice = new HTML("TAMT is checking your internet connection.");
    userNotice.setStylePrimaryName("homepageWarning");
    RootLayoutPanel.get().add(userNotice);
   
    testConnectionService = GWT.create(TestConnectionService.class);
    testConnectionService.testConnection(new AsyncCallback<String>() {
View Full Code Here


      @Override
      public void onOpen(OpenWaitModelDialogEvent event) {
        GWT.log("get the message and put it in the dialog...");
       
        dialogBox.setText(event.title);
        dialogBox.setWidget(new HTML(event.message));
        dialogBox.setAutoHideEnabled(false);
        dialogBox.setGlassEnabled(true);
        dialogBox.center();
        dialogBox.show();
      }
View Full Code Here

     
      idx++;
    }
   
    if ( idx == 0 ) {
      buttons.add(new HTML(" <font color=\"gray\"><i>(no working ontologies)</i></font>"));
    }
   
  }
View Full Code Here

   
    // reset the checkboxes array
    checkboxes = new ArrayList<CheckBox>();
   
    // set the column headers
    HTML dateHeader = new HTML("Date");
    dateHeader.setStyleName(style.columnHeader());
   
    HTML startHeader = new HTML("Start time");
    startHeader.setStyleName(style.columnHeader());
   
    HTML endHeader = new HTML("End time");
    endHeader.setStyleName(style.columnHeader());
   
    HTML dayTypeHeader = new HTML("Day type");
    dayTypeHeader.setStyleName(style.columnHeader());
   
    HTML tagHeader = new HTML("Tag");
    tagHeader.setStyleName(style.columnHeader());
   
    HTML blank = new HTML("");
    blank.setStyleName(style.checkbox());
   
    trafficCountRecordsTable.setWidget(0, 0, blank );
    trafficCountRecordsTable.setWidget(0, 1, dateHeader );
    trafficCountRecordsTable.setWidget(0, 2, startHeader );
    trafficCountRecordsTable.setWidget(0, 3, endHeader );
View Full Code Here

    status.setText("Selected: " +selectedRows.size()+ " out of " +currentRows.size()+ " element(s)");
  }

  public void searching() {
    rowPanel.clear();
    rowPanel.add(new HTML(
        "<img src=\"" +GWT.getModuleBaseURL()
        + "images/loading.gif\"> <i>Searching...</i>"
    ));
  }
View Full Code Here

      rowPanel.add(row);
    }
    updateStatus();
   
    if ( currentRows.size() == 0 ) {
      rowPanel.add(new HTML("<i>No entities found</i>"));
    }
    else if ( currentRows.size() == 1 ) {
      // automatically expose the contents of this single result
      Row row = currentRows.values().iterator().next();
      row.open();
View Full Code Here

    panel.getFlexCellFormatter().setAlignment(row, 1,
        HasHorizontalAlignment.ALIGN_LEFT, HasVerticalAlignment.ALIGN_MIDDLE
    );
    row++;
     
    panel.setWidget(row, 0, new HTML("Click to verify availability: "));
    panel.getFlexCellFormatter().setAlignment(row, 0,
        HasHorizontalAlignment.ALIGN_RIGHT, HasVerticalAlignment.ALIGN_MIDDLE
    );

    CellPanel buttons = createButtons();
View Full Code Here

//      hp.setBorderWidth(1);
      hp.setVerticalAlignment(ALIGN_MIDDLE);
      _setWidget(row, col, hp);
     
      if ( row > CONTROL_ROW ) {
        HTML html = new HTML(text);
        HTML filler = new HTML("");
       
        hp.setCellHorizontalAlignment(html, ALIGN_RIGHT);
       
//        if ( readOnly ) {
//          hp.add(html);
//          hp.add(filler);
//         
//          hp.setCellWidth(html, "80%");
//          hp.setCellWidth(filler, "20%");
//        }
//        else {
          Image img = _createMenu(row, col);
         
          hp.add(img);
          hp.add(html);
          hp.add(filler);
         
          hp.setCellWidth(img, "30%");
          hp.setCellWidth(html, "50%");
          hp.setCellWidth(filler, "20%");
         
          hp.setCellHorizontalAlignment(img, ALIGN_LEFT);
//        }
      }
      else { //if ( ! readOnly ) {
        Image img = _createMenu(row, col);
        hp.add(img);
      }
     
    }
    else if ( row == CONTROL_ROW && col == CONTROL_COL ) {
      HorizontalPanel hp = new HorizontalPanel();
      hp.setVerticalAlignment(ALIGN_MIDDLE);
      Image img = _createMenu(row, col);
      hp.add(img);
      if ( termsTLabel != null ) {
        hp.add(termsTLabel);
      }
      _setWidget(row, col, hp)
    }
    else {
      _setWidget(row, col, new HTML(text));
    }
  }
View Full Code Here

      FlexCellFormatter cf = flexPanel.getFlexCellFormatter();
     
      int row = 0;
     
      cf.setColSpan(row, 0, 2);
      flexPanel.setWidget(row, 0, new HTML("<a target=\"_blank\" href=\"" +uriResLink+ "\">" +uri+ "</a>"));
      cf.setAlignment(row, 0, HasHorizontalAlignment.ALIGN_LEFT, HasVerticalAlignment.ALIGN_TOP);
      row++;
     
     
      List<PropValue> props = entity.getProps();
      for ( PropValue pv : props ) {
       
        String htmlStr;
        HTML html;
       
        // column 0
        html = new HTML();
        String propName = pv.getPropName();
        String propUri = pv.getPropUri();
        if ( propName == null ) {
          propName = "?";
        }
        if ( propUri != null ) {
          htmlStr = "<a target=\"_blank\" href=\"" +propUri+ "\">" +propName+ "</a>";
        }
        else {
          htmlStr = propName;
        }
        html.setHTML("<b>" +htmlStr+ "</b>:");
        if ( propUri != null ) {
          html.setTitle(propUri);
        }
        flexPanel.setWidget(row, 0, html);
        cf.setAlignment(row, 0, HasHorizontalAlignment.ALIGN_RIGHT, HasVerticalAlignment.ALIGN_TOP);

       
        // column 1
        html = new HTML();
        String valueName = pv.getValueName();
        String valueUri = pv.getValueUri();
        if ( valueName == null ) {
          valueName = "?";
        }
        if ( valueUri != null ) {
          htmlStr = "<a target=\"_blank\" href=\"" +valueUri+ "\">" +valueName+ "</a>";
          html.setHTML(htmlStr);
        }
        else {
          htmlStr = valueName;
          html.setText(htmlStr);
        }
        if ( valueUri != null ) {
          html.setTitle(valueUri);
        }
        flexPanel.setWidget(row, 1, html);
        cf.setAlignment(row, 1, HasHorizontalAlignment.ALIGN_LEFT, HasVerticalAlignment.ALIGN_TOP);

       
View Full Code Here

    clearTable();
    currentTagDetails = null;
   
    // open a modal dialog;
    dialog.setText("Generating reports");
    dialog.setWidget(new HTML("Generating aggregate by day type reports for all tags. <br/>This may take a few minutes"));
    dialog.setAutoHideEnabled(false);
    dialog.setGlassEnabled(true);
    dialog.center();
    dialog.show();
   
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.