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

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


        hide();
      }
    };
    closeButton.addClickHandler(cancelHandler);
    cancelButton = new Button("Cancel", cancelHandler);
    buttonPanel = new HorizontalPanel();
    buttonPanel.setSpacing(10);
    message = new HTML();
    VerticalPanel content = new VerticalPanel();
    content.setWidth("500px");
    content.add(message);
View Full Code Here


        CommandEvent.fire(errorCommand);
      }
    });
    this.cancel = new Button("Cancel", cancelHandler);
    VerticalPanel content = new VerticalPanel();
    buttonPanel = new HorizontalPanel();
    buttonPanel.setSpacing(10);
    buttonPanel.add(this.retry);
    buttonPanel.add(this.cancel);
    content.setWidth("500px");
    content.add(messagePanel);
View Full Code Here

      addClickHandler(new ClickHandler() {
          public void onClick(ClickEvent event) {
            hide();
          }
      });
      HorizontalPanel content = new HorizontalPanel();
      picker = new ColorPicker();
      picker.addClickHandler(new ClickHandler() {
      @Override
      public void onClick(ClickEvent event) {
        hide();
        if (selectionHandler != null) {
        ColorSelectionEvent e = new ColorSelectionEvent(picker.getSelectedColor());
        selectionHandler.onSelection(e);
        }
      }
      });
      content.add(picker);
      initWidget(content);
  }
View Full Code Here

   *
   * @param field the field's widget.
   * @param name the field's label.
   */
  private void addNamedField(Widget field, String name) {
      HorizontalPanel row = new HorizontalPanel();
    row.setVerticalAlignment(HorizontalPanel.ALIGN_MIDDLE);
    Label label = new Label(name);
    label.setStylePrimaryName("lab-Form-Label");
    field.setStylePrimaryName("lab-Form-Field");
    row.add(label);
    row.add(field);
    rightPanel.add(row);
  }
View Full Code Here

      event.preventDefault();
      event.stopPropagation();
      loadEntries(false);
      }
    });
    HorizontalPanel buttons = new HorizontalPanel();
    buttons.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);
    buttons.setSpacing(10);
    buttons.add(ok);
    buttons.add(cancel);
    buttons.add(refresh);
    rightPanel.add(buttons);
    onShowContent = new Runnable() {
    @Override
    public void run() {
      resize();
View Full Code Here

      position.setWidget(1, 0, bottomPosition);
      position.setWidget(1, 1, floatPosition);
    oneColumn = new RadioButton("expansion", "One column");
      oneColumn.setValue(true);
    twoColumns = new RadioButton("expansion", "Two columns");
    HorizontalPanel expansion = new HorizontalPanel();
    expansion.add(oneColumn);
    expansion.add(twoColumns);
      addField(image, "Image:");
    addHeader("Caption");
      addField(caption, "Caption:");
      addField(label, "Label:");
      addField(centerHorizontal);
View Full Code Here

    content.setWidth("500px");
    alignTop = new RadioButton("alignment", "Align at top line");
    alignCenter = new RadioButton("alignment", "Align at center of table");
    alignCenter.setValue(true);
    alignBottom = new RadioButton("alignment", "Align at bottom line");
    HorizontalPanel alignment = new HorizontalPanel();
    alignment.add(alignTop);
    alignment.add(alignCenter);
    alignment.add(alignBottom);
    centerHorizontal = new CheckBox("Center horizontal");
      centerHorizontal.setValue(true);
    insertAsFloat = new CheckBox("Insert as float");
      insertAsFloat.setValue(true);
      insertAsFloat.addValueChangeHandler(new ValueChangeHandler<Boolean>() {
      @Override
      public void onValueChange(ValueChangeEvent<Boolean> event) {
        boolean value = event.getValue();
        for (int i=7; i<=10; i++) {
          content.getRowFormatter().setVisible(i, value);
        }
        center();
      }
      });
    caption = new TextBox();
    caption.setWidth("250px");
    label = new TextBox();
    label.setWidth("250px");
    herePosition = new CheckBox("Here");
    topPosition = new CheckBox("Top of the page");
      topPosition.setValue(true);
    bottomPosition = new CheckBox("Bottom of the page");
      bottomPosition.setValue(true);
    floatPosition = new CheckBox("Page of floats");
      floatPosition.setValue(true);
      FlexTable position = new FlexTable();
      position.setWidth("100%");
      position.insertRow(0);
      position.insertCell(0, 0);
      position.insertCell(0, 1);
      position.insertRow(1);
      position.insertCell(1, 0);
      position.insertCell(1, 1);
      position.setWidget(0, 0, herePosition);
      position.setWidget(0, 1, topPosition);
      position.setWidget(1, 0, bottomPosition);
      position.setWidget(1, 1, floatPosition);
    oneColumn = new RadioButton("expansion", "One column");
      oneColumn.setValue(true);
    twoColumns = new RadioButton("expansion", "Two columns");
    HorizontalPanel expansion = new HorizontalPanel();
    expansion.add(oneColumn);
    expansion.add(twoColumns);
    addHeader("Caption");
      addField(caption, "Caption:");
      addField(label, "Label:");
    addHeader("Alignment");
      addField(alignment);
View Full Code Here

      content.setCellPadding(2);
      content.setWidth("500px");
      content.setStylePrimaryName("lab-Form");
      submit = new Button("OK");
      cancel = new Button("Cancel");
      buttonPanel = new HorizontalPanel();
      buttonPanel.setSpacing(10);
      buttonPanel.add(submit);
      buttonPanel.add(cancel);
    content.insertRow(0);
    content.insertCell(0, 0);
View Full Code Here

        event.preventDefault();
        event.stopPropagation();
        loadEntries(false);
      }
    });
    HorizontalPanel buttons = new HorizontalPanel();
    buttons.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);
    buttons.setSpacing(10);
    buttons.add(ok);
    buttons.add(cancel);
    buttons.add(refresh);
    panel.add(scroll);
    panel.add(buttons);
    onShowContent = new Runnable() {
    @Override
    public void run() {
View Full Code Here

   * @param targetWidth the initial width of the window frame, or null to inherit
   * @param targetHeight the initial height of the dialog window, or null to inherit
   */
  protected DynamicWindow(String title, boolean allowDropping,
    String targetWidth, String targetHeight) {
    super(title, new HorizontalPanel(), allowDropping);
    HorizontalPanel contents = (HorizontalPanel) getContentWidget();
    if (targetWidth != null) {
      contents.setWidth(targetWidth);
    }
    if (targetHeight != null) {
      contents.setHeight(targetHeight);
    }
    contents.setStylePrimaryName("lab-Loading");
    contents.add(new HTML("&nbsp;"));
  }
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.