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

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


        RootPanel.get().addStyleName(StaticResourceBundle.INSTANCE.coreCss().settingsPanel());
        contentPanel.setStyleName(StaticResourceBundle.INSTANCE.coreCss().settingsContent());

        FlowPanel title = new FlowPanel();
        title.addStyleName(StaticResourceBundle.INSTANCE.coreCss().settingsTitleBar());
        close = new Hyperlink();
        title.add(close);
        pageTitleLabel.setText(inPageTitle);
        title.add(pageTitleLabel);
        contentPanel.add(title);
View Full Code Here


        FlowPanel navPanel = new FlowPanel();

        Anchor externalLink = new Anchor("EurekaStreams.org", "http://www.eurekastreams.org", "_blank");
        externalLink.addStyleName(StaticResourceBundle.INSTANCE.coreCss().navBarButton());

        Hyperlink startPageLink = new Hyperlink("Start", Session.getInstance().generateUrl(
                new CreateUrlRequest(Page.START)));
        startPageLink.addStyleName(StaticResourceBundle.INSTANCE.coreCss().navBarButton());
        Hyperlink activityLink = new Hyperlink("Activity", Session.getInstance().generateUrl(
                new CreateUrlRequest(Page.ACTIVITY)));
        activityLink.addStyleName(StaticResourceBundle.INSTANCE.coreCss().navBarButton());
        Hyperlink directoryLink = new Hyperlink("Discover", Session.getInstance().generateUrl(
                new CreateUrlRequest(Page.DISCOVER)));
        directoryLink.addStyleName(StaticResourceBundle.INSTANCE.coreCss().navBarButton());
       
        Hyperlink settingsLink = new Hyperlink("Settings", Session.getInstance().generateUrl(
                new CreateUrlRequest(Page.SETTINGS)));
        settingsLink.addStyleName(StaticResourceBundle.INSTANCE.coreCss().navBarButton());
        Hyperlink myProfileLink = new Hyperlink("My Stream", Session.getInstance().generateUrl(
                new CreateUrlRequest(Page.PEOPLE, viewer.getAccountId())));
        myProfileLink.addStyleName(StaticResourceBundle.INSTANCE.coreCss().navBarButton());

        externalPageLinkPanel.add(externalLink);
        externalPageLinkPanel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().externalHeaderButton());
        startPageLinkPanel.add(startPageLink);
        startPageLinkPanel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().startHeaderButton());
View Full Code Here

        }
        if (page != null)
        {
            FlowPanel showAllPanel = new FlowPanel();
            showAllPanel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().singleActivityShowAll());
            showAllPanel.add(new Hyperlink(title, Session.getInstance().generateUrl(
                    new CreateUrlRequest(page, destinationStream.getUniqueId()))));
            add(showAllPanel);
        }

        StreamMessageItemRenderer renderer = new StreamMessageItemRenderer(showRecipient);
View Full Code Here

        this.addStyleName(StaticResourceBundle.INSTANCE.coreCss().urlValidator());

        generateUrlCommand = inGenerateUrlCommand;

        Hyperlink closeUrlPanel = new Hyperlink("Delete", History.getToken());
        closeUrlPanel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().smallX());
        closeUrlPanel.addClickHandler(new ClickHandler()
        {

            public void onClick(final ClickEvent event)
            {
                urlPanel.setVisible(false);
                getTextBox().setVisible(true);
                getTextBox().setText("");
                importBtn.setVisible(true);
                failed = true;
            }
        });

        urlPanel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().urlPanel());
        urlPanel.setVisible(false);
        urlLabel.setStyleName(StaticResourceBundle.INSTANCE.coreCss().urlLabel());
        urlPanel.add(closeUrlPanel);
        urlPanel.add(urlLabel);
        mainPanel.insert(urlPanel, 3);

        importBtn = new Hyperlink("import", History.getToken());
        importBtn.addStyleName(StaticResourceBundle.INSTANCE.coreCss().importButton());
        importBtn.addStyleName(StaticResourceBundle.INSTANCE.coreCss().formUploadButton());
        importBtn.addStyleName(StaticResourceBundle.INSTANCE.coreCss().formButton());
        mainPanel.insert(importBtn, 4);
        processingSpinny.setVisible(false);
View Full Code Here

        CreateUrlRequest linkInfo = determineStreamLink(jsonRequest);
        if (linkInfo != null)
        {
            String token = Session.getInstance().generateUrl(linkInfo);
            Hyperlink link = new Hyperlink("Go to Stream", token);
            link.addStyleName(StaticResourceBundle.INSTANCE.coreCss().goToStreamLink());
            FlowPanel panel = new FlowPanel();
            panel.add(link);
            streamPanel.add(panel); // cheating somewhat here
        }
View Full Code Here

                    }

                });
        SystemSettingsModel.getInstance().fetch(null, true);

        share = new Hyperlink("share", History.getToken());
        share.addStyleName(StaticResourceBundle.INSTANCE.coreCss().formButton());
        share.addStyleName(StaticResourceBundle.INSTANCE.coreCss().formShareButton());

        Hyperlink cancel = new Hyperlink("Cancel", History.getToken());
        cancel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().formButton());
        cancel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().formCancelButton());
        cancel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().shareMessageCancel());

        body.add(share);
        body.add(cancel);

        cancel.addClickHandler(new ClickHandler()
        {
            public void onClick(final ClickEvent event)
            {
                close();
            }
View Full Code Here

    {
        this.getElement().setAttribute("id", "post-to-stream");
        this.addStyleName(StaticResourceBundle.INSTANCE.coreCss().small());

        charsRemaining = new Label();
        postButton = new Hyperlink("", History.getToken());
        postButton.getElement().setAttribute("tabindex", "2");
        message = new PostToStreamTextboxPanel();
        message.setText(postBoxDefaultText);
        message.setVisible(false); // Hide until post ready event.
View Full Code Here

        FlowPanel userLinkPanel = new FlowPanel();

        String nameUrl = Session.getInstance().generateUrl(
                new CreateUrlRequest(Page.PEOPLE, currentPerson.getAccountId()));
        Hyperlink name = new Hyperlink(currentPerson.getDisplayName(), nameUrl);
        name.setTitle(currentPerson.getDisplayName());
        name.addStyleName(style.currentUserStreamLink());
        name.addStyleName(StaticResourceBundle.INSTANCE.coreCss().ellipsisChild());
        userLinkPanel.add(name);

        String confUrl = Session.getInstance().generateUrl(
                new CreateUrlRequest(Page.PERSONAL_SETTINGS, currentPerson.getAccountId()));
        Hyperlink conf = new Hyperlink("Configure My Stream", confUrl);
        conf.addStyleName(style.currentUserConfLink());
        userLinkPanel.add(conf);

        userPanel.add(userLinkPanel);

        CustomStreamModel.getInstance().fetch(null, true);
View Full Code Here

            % pagination.getResultsPerPage() != 0) {
          totalPages++;
        }

        // Previous Page
        Hyperlink previousPageLink = new Hyperlink(previousPageText,
            "previousPage");
        pagingControls[i].setWidget(0, 0, previousPageLink);
        if (pagination.getPage() == 1
            || pagination.getResults().getSize() == 0) {
          pagingControls[i].getCellFormatter().addStyleName(0, 0,
              "noPreviousPageCell");
        } else {
          previousPageLink.addClickListener(new ClickListener() {
            public void onClick(Widget sender) {
              pagination.showPage(pagination.getPage() - 1);
            }
          });
          pagingControls[i].getCellFormatter().addStyleName(0, 0,
              "previousPageCell");
        }

        // Pages
        int currentPageForCell = 1;
        int totalCells = totalPages;
        if (totalPages > maxPageLinks) {
          totalCells = maxPageLinks;

          if (pagination.getPage() > maxPageLinks / 2) {
            currentPageForCell = pagination.getPage()
                - (maxPageLinks / 2);
            if (pagination.getPage() >= totalPages
                - (maxPageLinks / 2)) {
              currentPageForCell = totalPages
                  - (maxPageLinks - 1);
            }
          }
        }

        int cellNumber = 1;
        for (; cellNumber <= totalCells; cellNumber++) {
          Hyperlink pageLink = new Hyperlink(currentPageForCell + "",
              "page");
          pagingControls[i].setWidget(0, cellNumber, pageLink);
          final int tmp = currentPageForCell;
          if (pagination.getPage() != currentPageForCell) {
            pageLink.addClickListener(new ClickListener() {
              public void onClick(Widget sender) {
                pagination.showPage(tmp);
              }
            });
            pagingControls[i].getCellFormatter().addStyleName(0,
                cellNumber, "pageCell");
          } else {
            pagingControls[i].getCellFormatter().addStyleName(0,
                cellNumber, "currentPageCell");
          }
          currentPageForCell++;
        }

        // Next Page
        Hyperlink nextPageLink = new Hyperlink(nextPageText, "nextPage");
        pagingControls[i].setWidget(0, cellNumber, nextPageLink);
        if (pagination.getPage() == totalPages
            || pagination.getResults().getSize() == 0) {
          pagingControls[i].getCellFormatter().addStyleName(0,
              cellNumber, "noNextPageCell");
        } else {
          nextPageLink.addClickListener(new ClickListener() {
            public void onClick(Widget sender) {
              pagination.showPage(pagination.getPage() + 1);
            }
          });
View Full Code Here

  }

  private void addColumn(int row, int col, final Column column) {

    if (column.isSortable()) {
      Hyperlink link = new Hyperlink();
      link.addClickListener(new ClickListener() {
        public void onClick(Widget sender) {
          boolean isAscending = pagination.getParameters()
              .isAscending();
          if (column.getParameter().equals(
              pagination.getParameters().getParameter())) {
View Full Code Here

TOP

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

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.