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

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


          CommandEvent.fire(cancelCommand);
        }
      }
    };
    closeButton.addClickHandler(cancelHandler);
    messagePanel = new VerticalPanel();
    messagePanel.setSpacing(10);
    this.retry = new Button("Retry", new ClickHandler(){
      public void onClick(ClickEvent event) {
        hide();
        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);
    content.add(buttonPanel);
    setContentWidget(content);
  }
View Full Code Here


   */
  protected StaticLoadingDialog() {
    super("Loading", true);
    closeButton.setVisible(false);
    message = new Label();
    VerticalPanel content = new VerticalPanel();
    content.setWidth("500px");
    content.add(message);
    setContentWidget(content);
  }
View Full Code Here

          }
      });
      HTML info = new HTML("The selected files will be compiled with the current document. " +
        "Use the reference value beneath each item when referencing the corresponding file.");
      setTopWidget(info);
      leftPanel = new VerticalPanel();
      leftPanel.setWidth("100px");
      leftPanel.setVerticalAlignment(VerticalPanel.ALIGN_TOP);
      rightPanel = new VerticalPanel();
      rightPanel.setVerticalAlignment(VerticalPanel.ALIGN_TOP);
      FlexTable table = new FlexTable();
      table.insertRow(0);
      table.insertCell(0, 0);
      table.insertCell(0, 1);
View Full Code Here

   
  /**
   * Builds the links side bar.
   */
  private void buildLinks() {
    VerticalPanel panel = new VerticalPanel();
    panel.setVerticalAlignment(HasVerticalAlignment.ALIGN_TOP);
    panel.setStylePrimaryName("lab-Explorer-Links");
    Anchor refreshLink = new Anchor("Refresh");
    refreshLink.addClickHandler(new ClickHandler() {
        @Override
        public void onClick(ClickEvent event) {
      event.preventDefault();
      event.stopPropagation();
      loadEntries(false);
        }
    });
    Anchor newDocumentLink = new Anchor("New Document", "/docs", "_blank");
    Anchor acLink = new Anchor("Google Access Control", "https://www.google.com/accounts/IssuedAuthSubTokens", "_blank");
    Anchor docsLink = new Anchor("Google Documents", "http://docs.google.com/", "_blank");
    panel.add(new HTML("<br /><b>Actions</b>"));
    panel.add(refreshLink);
    panel.add(newDocumentLink);
    panel.add(new HTML("<br /><b>Links</b>"));
    panel.add(acLink);
    panel.add(docsLink);
    ScrollPanel linksPanel = new ScrollPanel(panel);
    leftPanel.add(linksPanel);
  }
View Full Code Here

 
  /**
   * Builds a new About dialog contents.
   */
  public AboutDialogContents() {
      VerticalPanel content = new VerticalPanel();
      content.setStylePrimaryName("lab-About");
      Image logo = Icons.editorIcons.LogoLarge().createImage();
      content.setHorizontalAlignment(VerticalPanel.ALIGN_LEFT);
      content.add(logo);
      content.setSize("650px", "100px");
      HTML l1 = new HTML("&copy; 2010 LatexLab.org. Licensed under the Apache License, Version 2.0.<br /><br />" +
        "LaTeX Lab is a web based LaTeX editor for Google Docs made possible by the following systems and open source projects:");
      l1.getElement().getStyle().setPaddingTop(5, Unit.PX);
      Label l2 = new Label("LaTeX Lab is under development.");
      l2.getElement().getStyle().setPaddingTop(10, Unit.PX);
      l2.getElement().getStyle().setColor("red");
      l2.getElement().getStyle().setFontWeight(FontWeight.BOLD);
      String linksHtml = "<br />" +
        "<b><a href=\"http://code.google.com/webtoolkit/\">Google Web Toolkit (GWT)</a></b>, " +
        "<a href=\"http://code.google.com/appengine/\">Google App Engine</a>, " +
        "<a href=\"http://code.google.com/p/common-latex-service-interface/\">Common LaTeX Service Interface (CLSI)</a>, " +
        "<a href=\"http://marijn.haverbeke.nl/codemirror/\">Code Mirror In-Browser Editor</a>, " +
        "<a href=\"http://code.google.com/p/gwt-dnd/\">Gwt-Dnd Project</a>, " +
        "<a href=\"http://code.google.com/p/gwt-gdata/\">Gwt-GData Project</a>, " +
        "<a href=\"http://code.google.com/p/gdbe/\">Google-Docs Base Editor (GDBE)</a>, " +
        "<br /><a href=\"http://code.google.com/p/latex-lab\">Visit the LaTeX Lab Project site</a>";
      HTML links = new HTML(linksHtml);
      content.add(l1);
      content.add(links);
      content.add(l2);
    initWidget(content);
  }
View Full Code Here

    @Override
    public void onValueChange(ValueChangeEvent<Boolean> event) {
        setView(!useCustom.getValue());
    }
    };
    VerticalPanel usage = new VerticalPanel();
    useDefault = new RadioButton("usage", "Use the default LaTeX Lab compiler.");
    useDefault.setValue(true);
    useDefault.addValueChangeHandler(changeHandler);
    useCustom = new RadioButton("usage");
    useCustom.setHTML("Use a third party <a href=\"http://code.google.com/p/common-latex-service-interface/\" target=\"_blank\">CLSI</a> provider.");
    useCustom.addValueChangeHandler(changeHandler);
    useMikTex = new RadioButton("usage");
    useMikTex.setEnabled(false);
    String devUrl = Window.Location.getHref().replace("/docs.", "/dev.");
    useMikTex.setHTML("Use a local <a href=\"http://miktex.org/\" target=\"_blank\">MikTeX</a> installation. <a href=\"" + devUrl + "\">Available in development version</a>");
    useMikTex.addValueChangeHandler(changeHandler);
    useTexLive = new RadioButton("usage");
    useTexLive.setEnabled(false);
    useTexLive.setHTML("Use a local <a href=\"http://www.tug.org/texlive/\" target=\"_blank\">TeX Live</a> installation.");
    useTexLive.addValueChangeHandler(changeHandler);
    usage.add(useDefault);
    usage.add(useMikTex);
    usage.add(useTexLive);
    usage.add(useCustom);
    addField(usage);
    warning = new VerticalPanel();
    warning.setStylePrimaryName("lab-Warning");
    warning.add(new HTML("The default LaTeX Lab compiler is a shared environment which may " +
        "temporarily cache document contents for performance. For sensitive documents " +
        "you are encouraged to use LaTeX Lab with a local MikTeX/TeX Live installation or a private CLSI environment. " +
        "<br /><br />For more information visit the <a href=\"http://code.google.com/p/latex-lab\" target=\"_blank\">Privacy</a> " +
View Full Code Here

 
  /**
   * Constructs a Development Info dialog contents.
   */
  public DevelopmentInfoDialogContents() {
    VerticalPanel panel = new VerticalPanel();
    panel.setWidth("500px");
    panel.add(new HTML("Welcome to the development version of LaTeX Lab.<br /><br />" +
      "This is where we deploy and test new features that are not yet ready for production use.<br /><br />" +
      "<a href=\"https://wave.google.com/wave/waveref/googlewave.com/w+tziZnYNzA\" target=\"_blank\">LaTeX Lab Development Wave</a><br /><br />" +
      "<b>Currently Deployed</b>:<ul>" +
      "<li>Editor Preferences Dialog (Edit -> Preferences)</li>" +
      "<li>Code Splitting (on-demand loading of components)</li>" +
      "<li>Insert, Math and Format menus</li>" +
      "<li>Local MikTeX compiler support</li>" +
      "</ul>"));
    Button ok = new Button("OK", new ClickHandler() {
    @Override
    public void onClick(ClickEvent event) {
      hide();
    }
    });
    panel.add(ok);
    initWidget(panel);
  }
View Full Code Here

      addClickHandler(new ClickHandler() {
          public void onClick(ClickEvent event) {
            hide();
          }
      });
      panel = new VerticalPanel();
      panel.setWidth("400px");
      panel.setVerticalAlignment(VerticalPanel.ALIGN_TOP);
      initWidget(panel);
      scroll = new ScrollPanel();
    tree = new ExplorerTree(true, true, true, null);
View Full Code Here

    final Button closeButton = new Button("Close");
    // We can set the id of a widget by accessing its Element
    closeButton.getElement().setId("closeButton");
    final Label textToServerLabel = new Label();
    final HTML serverResponseLabel = new HTML();
    VerticalPanel dialogVPanel = new VerticalPanel();
    dialogVPanel.addStyleName("dialogVPanel");
    dialogVPanel.add(new HTML("<b>Sending name to the server:</b>"));
    dialogVPanel.add(textToServerLabel);
    dialogVPanel.add(new HTML("<br><b>Server replies:</b>"));
    dialogVPanel.add(serverResponseLabel);
    dialogVPanel.setHorizontalAlignment(VerticalPanel.ALIGN_RIGHT);
    dialogVPanel.add(closeButton);
    dialogBox.setWidget(dialogVPanel);

    // Add a handler to close the DialogBox
    closeButton.addClickHandler(new ClickHandler() {
      public void onClick(ClickEvent event) {
View Full Code Here

  protected VerticalPanel annotationsBar;
  protected FlexTable content;
 
  public AnnotatedPanel() {
  handlerManager = new HandlerManager(this);
  annotationsBar = new VerticalPanel();
  content = new FlexTable();
  content.setCellPadding(2);
  content.setCellSpacing(0);
  content.insertRow(0);
  content.insertCell(0, 0);
View Full Code Here

TOP

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

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.