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

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


        public void onOpen(DisclosureEvent event) {
          disclosureOpen();
        }
      });
     
      HorizontalPanel hp = new HorizontalPanel();
      this.add(hp);
      hp.add(checkBox);
     
//      hp.add(infoImg);
     
     
      //hp.add(textBox);
      hp.add(disclosure);
    }
View Full Code Here


   
    niceDayTypeNames.put(TrafficCountRecord.DAYTYPE_WEEKDAY, "Weekday");
    niceDayTypeNames.put(TrafficCountRecord.DAYTYPE_SATURDAY, "Saturday");
    niceDayTypeNames.put(TrafficCountRecord.DAYTYPE_SUNDAY_HOLIDAY, "Sunday/Holiday");
   
    outerHPanel = new HorizontalPanel();
    outerHPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);
   
    //trafficFlowReportService = GWT.create(TrafficFlowReportService.class);
    speedDistributionReportService = GWT.create(SpeedDistributionReportService.class);
   
View Full Code Here

 
  public DownloadCSV(HandlerManager eventBus) {
   
    this.eventBus = eventBus;
       
    outerHPanel = new HorizontalPanel();
    outerHPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);
   
    initWidget(uiBinder.createAndBindUi(this));
   
    resetScreen();
View Full Code Here

  SearchGroup(SearchVocabularySelection vocabularySelection, SearchResultsForm searchResultsForm) {
    super();
    this.vocabularySelection = vocabularySelection;
    this.searchResultsForm = searchResultsForm;
   
    HorizontalPanel hp0 = new HorizontalPanel();
    hp0.setVerticalAlignment(ALIGN_MIDDLE);
    add(hp0);
    hp0.setSpacing(3);
   
    hp0.add(new TLabel("Search for:",
        "Enter the string you want to search in the selected ontologies and click " +
        "the search button. " +
        "Leave the field blank to retrieve all associated entities. " +
        "<br/>" +
        "Check the REGEX button if you are entering a regular expression for your search " +
        "(not implemented yet)."
    ));

   
    // TODO implement REGEX search
    regex = new ToggleButton("REGEX");
    DOM.setElementAttribute(regex.getElement(), "id", "my-button-id");
    regex.setTitle("Check this to apply a regular expression search - NOT IMPLEMENTED YET");
   
   
   
    oracle = new MultiWordSuggestOracle("/")
   
    box = new SuggestBox(oracle);
    box.setWidth("250px");
    hp0.add(box);
   
    box.addChangeListener(new ChangeListener() {
      public void onChange(Widget sender) {
        search();
      }
    });
   
    PushButton b = new PushButton(VineMain.images.search().createImage());
    b.addClickListener(new ClickListener() {
      public void onClick(Widget sender) {
        search();
      }
    });
   
    hp0.add(b);

    hp0.add(regex);
  }
View Full Code Here

   
    this.eventBus = eventBus;
   
    backupService = GWT.create(BackupService.class);
   
    outerHPanel = new HorizontalPanel();
    outerHPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);
       
    initWidget(uiBinder.createAndBindUi(this));
   
    resetScreen();
View Full Code Here

   
    niceDayTypeNames.put(TrafficCountRecord.DAYTYPE_WEEKDAY, "Weekday");
    niceDayTypeNames.put(TrafficCountRecord.DAYTYPE_SATURDAY, "Saturday");
    niceDayTypeNames.put(TrafficCountRecord.DAYTYPE_SUNDAY_HOLIDAY, "Sunday/Holiday");
   
    outerHPanel = new HorizontalPanel();
    outerHPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);
   
    //trafficFlowReportService = GWT.create(TrafficFlowReportService.class);
    speedDistributionReportService = GWT.create(SpeedDistributionReportService.class);
   
View Full Code Here

      add(decPanel);

      layout.setSpacing(5);
   
   
      HorizontalPanel hp = new HorizontalPanel();
      hp.setVerticalAlignment(ALIGN_MIDDLE);
    layout.add(hp);
   
    if ( mainPanel.isReadOnly() ) {
      hp.add(new TLabel("Mapped ontologies:",
          "The ontologies where the mapped entities where taken from. " +
          "<br/>" +
          "These ontologies are given " +
          "codes, starting from 'A', to identify them in " +
          "the rest of the VINE interface. "
      ));
    }
    else {
      hp.add(new TLabel("Working ontologies:",
          "This section lists the ontologies whose entities can be mapped. " +
          "Use the \"Add\" button to add a working ontology. " +
          "<br/>" +
          "These ontologies are given " +
          "codes, starting from 'A', to identify them in " +
          "the rest of the VINE interface. "
      ));
     
      final PushButton addButton = new PushButton("Add...");
      addButton.setTitle("Allows to add a working ontology");
      DOM.setElementAttribute(addButton.getElement(), "id", "my-button-id");
      addButton.addClickListener(new ClickListener() {
        public void onClick(Widget sender) {
          int x = addButton.getAbsoluteLeft();
          int y = addButton.getAbsoluteTop();
          addVocabulary(x, y + 20);
        }
      });
      hp.add(addButton);
    }
   
    layout.add(workingUrisPanel);
   
    refreshListWorkingUris();
View Full Code Here

    panel.getFlexCellFormatter().setAlignment(row, col,
        HasHorizontalAlignment.ALIGN_LEFT, HasVerticalAlignment.ALIGN_MIDDLE
    );
    col++;

    HorizontalPanel buttons = new HorizontalPanel();
    if ( loadButton != null ) {
      buttons.add(loadButton);
    }
   
    // include the "details" button only if an administrator is logged in
    // OR this is running in my dev environment (for testing)
    LoginResult loginResult = PortalControl.getInstance().getLoginResult();
    if ( (loginResult != null && loginResult.isAdministrator())
    ||   !GWT.isScript()
    ) {
      buttons.add(detailsButton);
    }
   
    panel.getFlexCellFormatter().setColSpan(row, col, 2);
    panel.setWidget(row, col, buttons);
    panel.getFlexCellFormatter().setAlignment(row, col,
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) {
        statusHtml.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

    final int row = flexPanel.getRowCount();
    FlexCellFormatter cf = flexPanel.getFlexCellFormatter();
    flexPanel.getRowFormatter().setStyleName(row, style);
   
   
    HorizontalPanel hp = new HorizontalPanel();
   
    if ( cb != null ) {
      hp.add(cb);
    }
   
//    hp.add(Main.images.delete().createImage());
   
    // #169: metadata association per mapping
    Widget mdWidget = _prepareMappingMetadata(row, ma);
    hp.add(mdWidget);
   
    flexPanel.setWidget(row, 0, new FocusableRowElement(row, hp));
   
    flexPanel.setWidget(row, 1, new FocusableRowElement(row, left));
   
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.