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

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


      this.panel.add(star);
    }
      if (href == null) {
      this.panel.add(new Label(label));
      } else {
      Anchor link = new Anchor(label);
          link.setTarget("_blank");
          link.setHref(href);
      this.panel.add(link);
      }
    }
    if (identifier != null) {
    Label idnt = new Label("Ref: " + identifier);
View Full Code Here


  content.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);
  FlowPanel panel = new FlowPanel();
  panel.setWidth("100%");
  Label msg = new Label("There's nothing to preview yet, click the compile button to get started.");
  msg.setStylePrimaryName("lab-Error");
  Anchor showLogs = new Anchor("Compile Current Document", "#");
  showLogs.addClickHandler(new ClickHandler() {
    @Override
    public void onClick(ClickEvent event) {
      event.preventDefault();
      event.stopPropagation();
          CommandEvent.fire(new CurrentDocumentCompileCommand());
View Full Code Here

  private void addMessage() {
  HorizontalPanel pan = new HorizontalPanel();
  pan.setStylePrimaryName("caption");
  HTML msg = new HTML("Preview may not match the intended output exactly. " +
      "View the rendered document by  ");
  Anchor link = new Anchor("exporting to PDF", "#");
  link.addClickHandler(new ClickHandler() {
    @Override
    public void onClick(ClickEvent event) {
      event.preventDefault();
      event.stopPropagation();
        CommandEvent.fire(new CurrentDocumentExportCommand(CurrentDocumentExportCommand.PDF));
View Full Code Here

  content.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);
  FlowPanel panel = new FlowPanel();
  panel.setWidth("100%");
  Label err = new Label(msg);
  err.setStylePrimaryName("lab-Error");
  Anchor showLogs = new Anchor("View Compiler Output", "#");
  showLogs.addClickHandler(new ClickHandler() {
    @Override
    public void onClick(ClickEvent event) {
      event.preventDefault();
      event.stopPropagation();
          CommandEvent.fire(new SystemSetPerspectiveCommand(SystemSetPerspectiveCommand.VIEW_OUTPUT));
View Full Code Here

  public PageScroller() {
  panel = new HorizontalPanel();
  panel.setStylePrimaryName("lab-PageScroller");
    panel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
    panel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);
  stateLabel = new Anchor("No Pages", true);
  stateLabel.setStylePrimaryName("lab-PageScroller-Caption");
  stateLabel.addClickHandler(new ClickHandler() {
    @Override
    public void onClick(ClickEvent event) {
      CommandEvent.fire(new SystemSetPerspectiveCommand(
View Full Code Here

    box.setStylePrimaryName("lab-Previewer-Page");
    box.getElement().getStyle().setOverflow(Overflow.HIDDEN);
    Image img = new Image();
    img.setUrl(pages[i].replace("?", "_tn?"));
    img.setStylePrimaryName("lab-Previewer-Page-Image");
    Anchor caption = new Anchor("Page " + (i + 1));
    caption.setHref("#");
    caption.setStylePrimaryName("lab-Previewer-Page-Caption");
    caption.addClickHandler(new ClickHandler() {
    @Override
    public void onClick(ClickEvent event) {
      event.preventDefault();
      event.stopPropagation();
      CommandEvent.fire(new SystemViewPageCommand(pageNumber));
View Full Code Here

  this.annotationsBar.clear();
  int lastYPosition = 0;
  for (final Annotation annotation : annotations) {
    final int yPosition = annotation.getyPosition() - lastYPosition;
    lastYPosition = annotation.getyPosition();
      Anchor hintLink = new Anchor(annotation.getLabel());
      hintLink.setTitle(annotation.getTitle());
      hintLink.getElement().getStyle().setFontSize(10, Unit.PX);
        hintLink.getElement().getStyle().setDisplay(Display.BLOCK);
        hintLink.getElement().getStyle().setMarginTop(yPosition - 14, Unit.PX);
      hintLink.addClickHandler(new ClickHandler() {
      @Override
      public void onClick(ClickEvent event) {
        event.preventDefault();
        event.stopPropagation();
        SelectionEvent.fire(AnnotatedPanel.this, annotation);
View Full Code Here

    Image logo = Icons.editorIcons.Logo().createImage();
    logo.setStylePrimaryName("lab-Header-Logo");
    HorizontalPanel titlePanel = new HorizontalPanel();
    titlePanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);
    titlePanel.getElement().getStyle().setOverflow(Overflow.HIDDEN);
    title = new Anchor("", "");
    title.setStylePrimaryName("lab-Header-Title");
    title.setTitle("Click to rename this document");
    title.addClickHandler(this);
    info = new HTML();
    info.setStylePrimaryName("lab-Header-Info");
View Full Code Here

    table.getFlexCellFormatter().setHorizontalAlignment(0, 1, HasHorizontalAlignment.ALIGN_RIGHT);
    table.getFlexCellFormatter().setStylePrimaryName(0, 0, "lab-Header-Links");
    table.getFlexCellFormatter().setStylePrimaryName(0, 1, "lab-Header-Links");
    /* Upper Header Panel */
    leftLinks = new HorizontalPanel();
    Anchor projectLink = new Anchor("Project", "http://code.google.com/p/latex-lab", "_blank");
    Anchor wikiLink = new Anchor("Wiki", "http://code.google.com/p/latex-lab/w/list", "_blank");
    Anchor issuesLink = new Anchor("Issues", "http://code.google.com/p/latex-lab/issues/list", "_blank");
    Anchor devLink = new Anchor("Development Version", "http://dev.latexlab.org/docs", "_blank");
    Anchor texLink = new Anchor("TeXnicCenter", "http://www.texniccenter.org/", "_blank");
    leftLinks.add(projectLink);
    leftLinks.add(wikiLink);
    leftLinks.add(issuesLink);
    leftLinks.add(devLink);
    leftLinks.add(texLink);
    rightLinks = new HorizontalPanel();
    author = new Label();
    Anchor docsLink = new Anchor("Docs Home", "http://docs.google.com/", "_blank");
    Anchor helpLink = new Anchor("Help", "http://code.google.com/p/latex-lab/wiki/UsingLaTeXLab", "_blank");
    Anchor acLink = new Anchor("Access Control", "https://www.google.com/accounts/IssuedAuthSubTokens", "_blank");
    signoutLink = new Anchor("Sign Out");
    signoutLink.addClickHandler(new ClickHandler(){
      public void onClick(ClickEvent event) {
        CommandEvent.fire(new SystemSignOutCommand());
      }
    });
View Full Code Here

  /**
   * Constructs a new FileBox instance.
   */
  public FileBox() {
  link = new Anchor("No File Selected");
  link.setHref("#");
  link.setTitle("Click to select file.");
  link.setStylePrimaryName("lab-FileBox-Empty");
  link.addClickHandler(new ClickHandler() {
      @Override
View Full Code Here

TOP

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

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.