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

Examples of com.google.gwt.user.client.ui.Anchor.addClickHandler()


        final HTMLPanel passwordHintHtml = new HTMLPanel(i18n.login_passwordHint());
        final NodeList<Element> anchors = passwordHintHtml.getElement().getElementsByTagName("a");
        final Element a = anchors.getItem(0);
        final Anchor link = new Anchor(a.getInnerHTML());
        link.getElement().setId("signUpLink");
        link.addClickHandler(new ClickHandler() {

            @Override
            public void onClick(final ClickEvent event) {
                delegate.onPasswordHintClick();
            }
View Full Code Here


        final HTMLPanel passwordRecoveryParaHtml = new HTMLPanel(i18n.updatePassword_requestRecoveryTokenLink());
        final Element passwordRecoveryA = passwordRecoveryParaHtml.getElement().getElementsByTagName("a").getItem(0);
        final Anchor passwordRecoveryLink = new Anchor(passwordRecoveryA.getInnerHTML());
        passwordRecoveryLink.getElement().setId("requestRecoveryTokenLink");
        passwordRecoveryLink.addClickHandler(new ClickHandler() {

            @Override
            public void onClick(final ClickEvent event) {
                delegate.onRequestPasswordRecoveryClick();
            }
View Full Code Here

          hide();
        }
      }
    );
    Anchor refresh = new Anchor("Refresh", "#");
    refresh.addClickHandler(new ClickHandler(){
      public void onClick(ClickEvent event) {
      event.preventDefault();
      event.stopPropagation();
      loadEntries(false);
      }
View Full Code Here

  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);
View Full Code Here

    this.messagePanel.clear();
    this.messagePanel.add(new HTML("A different and recent version of the current document exists in the Google Docs servers.<br />" +
        "You may choose to continue and apply the pending changes to the version at the server or reload the document.<br />" +
        "Reloading the document will cause any unsaved changes to be lost."));
    Anchor viewRevisions = new Anchor("View and compare all versions of the current document", "#");
    viewRevisions.addClickHandler(new ClickHandler(){
    @Override
    public void onClick(ClickEvent event) {
      event.preventDefault();
      event.stopPropagation();
      CommandEvent.fire(new CurrentDocumentRevisionHistoryCommand());
View Full Code Here

      VerticalPanel panel = new VerticalPanel();
      panel.setVerticalAlignment(HasVerticalAlignment.ALIGN_TOP);
      panel.setStylePrimaryName("lab-Explorer-Links");
      mainPanel.getFlexCellFormatter().setStyleName(1, 0, ""); //cancel default style
      Anchor refreshLink = new Anchor("Refresh");
      refreshLink.addClickHandler(new ClickHandler() {
      @Override
      public void onClick(ClickEvent event) {
        event.preventDefault();
        event.stopPropagation();
        loadEntries(false);
View Full Code Here

      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

  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

  HorizontalPanel pan = new HorizontalPanel();
  pan.setStylePrimaryName("caption");
  HTML msg = new HTML("Preview may not match the intended output exactly. " +
      "View the rendered document by &nbsp;");
  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

  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

TOP
Copyright © 2018 www.massapi.com. 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.