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

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


              attr2.getTooltip() +
              "<br/><br/><div align=\"right\">(" +attr2.getUri()+ ")</div>";
   
    TLabel tlabel = new TLabel(label, editing && attr2.isRequired(), tooltip);
   
    HorizontalPanel hpRelated = new HorizontalPanel();
    hpRelated.add(tlabel);
    hpRelated.add(resourceTypeRelatedField);
    panel.setWidget(row, 0, hpRelated);
   
//    panel.setWidget(row, 0, tlabel);
//    panel.setWidget(row, 0, resourceTypeRelatedField);
//    panel.getFlexCellFormatter().setWidth(row, 0, "250");
   
    panel.getFlexCellFormatter().setAlignment(row, 0,
        HasHorizontalAlignment.ALIGN_LEFT, HasVerticalAlignment.ALIGN_MIDDLE
    );
//    panel.getFlexCellFormatter().setAlignment(row, 1,
//        HasHorizontalAlignment.ALIGN_LEFT, HasVerticalAlignment.ALIGN_MIDDLE
//    );
    row++;
    vp.add(panel);
    //////////////////////////////////////////////////////////////
   
    HorizontalPanel hp = new HorizontalPanel();
    vp.add(hp);
    hp.setSpacing(4);
    if ( includeIsMapCheck ) {
      hp.add(resourceTypeIsMap);
    }
   
  }
View Full Code Here


    }
    return className;
  }
 
  private HorizontalPanel createClassNamePanel() {
    HorizontalPanel classNamePanel = new HorizontalPanel();
    classNamePanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);
    prepareClassNamePanel(classNamePanel);
    return classNamePanel;
  }
View Full Code Here

   
    textBox.setText(searchString);
   
    add(new HTML("<h2>Keyword Search</h2>"));
   
    HorizontalPanel hp = new HorizontalPanel();
    hp.setVerticalAlignment(ALIGN_MIDDLE);
    hp.setSpacing(5);
   
    DecoratorPanel decPanel = new DecoratorPanel();
      decPanel.setWidget(hp);
      add(decPanel);

    hp.add(new Label("Search terms containing:"));
    hp.add(suggestBox);
   
    searchButton = new PushButton(Orr.images.search().createImage(), new ClickListener() {
      public void onClick(Widget sender) {
        _dispatchSearch();
      }
    });
   
    hp.add(searchButton);
    hp.add(new Label("Use OR to separate alternative keywords"));
   
    add(resultsPanel.getWidget());
   
    new Timer() {
      @Override
View Full Code Here

    panel.setWidget(row, 0, new HTML(info));
    panel.getFlexCellFormatter().setAlignment(row, 0,
        HasHorizontalAlignment.ALIGN_LEFT, HasVerticalAlignment.ALIGN_MIDDLE
    );
   
    HorizontalPanel hp = new HorizontalPanel();
    hp.setSpacing(3);
    hp.add(statusLoad);
   
//    if ( allowLoadOptions ) {
//      hp.add(loadButton);
//    }
   
View Full Code Here

      );
      row++;
     
    }
   
    HorizontalPanel buttons = new HorizontalPanel();
    buttons.add(loadButton);
    buttons.add(detailsButton);
   
    panel.getFlexCellFormatter().setColSpan(row, 0, 2);
//    statusField2.setWidth("400");
//    statusField2.setReadOnly(true);
//    panel.setWidget(row, 0, statusField2);
View Full Code Here

   
   
    rb0 = new RadioButton("grp", "Local file:");

   
    final HorizontalPanel uploadContainer = new HorizontalPanel();
    uploadContainer.add(upload);
    rb0.setChecked(true);
//    upload.setEnabled(true);   // --> this method is not available
    ClickListener clickListener = new ClickListener() {
      private TextBox chooseLabel;
      public void onClick(Widget sender) {
        statusLoad.setText("");
//        statusField2.setText("");
//        upload.setEnabled(rb0.isChecked());  // --> this method is not available
        uploadContainer.clear();
        if ( rb0.isChecked() ) {
          uploadContainer.add(upload);
        }
        else {
          if ( chooseLabel == null ) {
            chooseLabel = new TextBox();
            chooseLabel.setText("");
            chooseLabel.setEnabled(false);
          }
          uploadContainer.add(chooseLabel);
        }
       
        if ( selectButton != null ) {
          selectButton.setEnabled(rb1.isChecked());
        }
View Full Code Here

        HasHorizontalAlignment.ALIGN_LEFT, HasVerticalAlignment.ALIGN_MIDDLE
    );
    row++;
   
    createUpdateButton.setText(userLoggedIn == null ? "Create" : "Update");
    HorizontalPanel loginCell = new HorizontalPanel();
    loginCell.add(createUpdateButton);
    panel.getFlexCellFormatter().setColSpan(row, 0, 3);
    panel.setWidget(row, 0, loginCell);
    panel.getFlexCellFormatter().setAlignment(row, 0,
        HasHorizontalAlignment.ALIGN_RIGHT, HasVerticalAlignment.ALIGN_MIDDLE
    );
View Full Code Here

    }
  }

 
  private HorizontalPanel _putHFillers(String wleft, Widget widget, String wright) {
    HorizontalPanel hp = new HorizontalPanel();
    if ( wleft != null ) {
      hp.add(_createHFiller(wleft));
    }
    hp.add(widget);
    if ( wright != null ) {
      hp.add(_createHFiller(wright));
    }
    return hp;
  }
View Full Code Here

    boolean includeVersion = pctrl.getOntologyPanel().isVersionExplicit();

   
    // "view as" options:
    HorizontalPanel viewAsPanel = new HorizontalPanel();
    viewAsPanel.setSpacing(4);
    viewAsPanel.add(new HTML("View as: "));
    for (PortalControl.DownloadOption dopc : PortalControl.DownloadOption.values() ) {
      String text = pctrl.getDownloadOptionHtml(dopc, oi, includeVersion);
      if ( text != null ) {
        viewAsPanel.add(new HTML(text));
      }
    }
    controls.add(viewAsPanel);
   
    ExternalViewersInfo xvi = pctrl.getExternalViewersInfo(oi, includeVersion);
View Full Code Here

        docTable.setWidget(0, 2, link);
        docTable.setWidget(1, 2, info);
        if (entry.getFolders().length > 0) {
          Label folderLabel = new Label(entry.getFolders()[0]);
          folderLabel.setStylePrimaryName("lab-Explorer-Document-Folder");
        HorizontalPanel folderPanel = new HorizontalPanel();
        folderPanel.add(folderLabel);
          docTable.setWidget(2, 2, folderPanel);
        }
        panel.add(docTable);
        totalEntries++;
      }
View Full Code Here

TOP

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

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.