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

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


    private final static Templates TEMPLATES = GWT.create(Templates.class);

    public InfoBox(final String token, final String title, final String description) {
        String linkId = IdHelper.asId(getClass(), "_" + token);
        HTMLPanel panel = new HTMLPanel(TEMPLATES.infoBox(linkId, description));
        InlineHyperlink hyperlink = new InlineHyperlink(title, token);
        hyperlink.addStyleName("homepage-link");
        panel.add(hyperlink, linkId);

        initWidget(panel);
    }
View Full Code Here


  private void generateBreadcrumbs(Panel container, List<Title> titles) {
    container.clear();

    // For all of the titles previous to the last, add a link and a separator.
    for (Title notLast : titles.subList(0, titles.size() - 1)) {
      container.add(new InlineHyperlink(notLast.getTitle(), notLast.getFragment()));
      container.add(new InlineLabel(" > "));
    }

    // Append only the text for the last title.
    Title lastTitle = Iterables.getLast(titles);
View Full Code Here

        dp.setOpen(true);

        String linkId = IdHelper.asId(id + "_", getClass(), "_" + "link");
        HTMLPanel panel = new HTMLPanel(TEMPLATES.body(body, linkId));
        panel.addStyleName("homepage-content-box-body");
        InlineHyperlink hyperlink = new InlineHyperlink(linkTitle, linkTarget);
        hyperlink.addStyleName("homepage-link");
        panel.add(hyperlink, linkId);
        dp.add(panel);

        initWidget(dp);
        setStyleName("homepage-content-box");
View Full Code Here

        dp.setOpen(true);

        String linkId = IdHelper.asId(id + "_", getClass(), "_" + "link");
        HTMLPanel panel = new HTMLPanel(TEMPLATES.body(body, linkId));
        panel.addStyleName("homepage-content-box-body");
        InlineHyperlink hyperlink = new InlineHyperlink(linkTitle, linkTarget);
        hyperlink.addStyleName("homepage-link");
        panel.add(hyperlink, linkId);
        dp.add(panel);

        initWidget(dp);
        setStyleName("homepage-content-box");
View Full Code Here

    public InfoBox(final String token, final String title, final String description) {
        String linkId = IdHelper.asId(getClass(), "_" + token);
        HTMLPanel panel = new HTMLPanel(TEMPLATES.infoBox(linkId, description));
        panel.getElement().setId(IdHelper.asId(getClass(), "_info-box"));
        panel.addStyleName("homepage-info-box");
        InlineHyperlink hyperlink = new InlineHyperlink(title, token);
        hyperlink.addStyleName("homepage-link");
        panel.add(hyperlink, linkId);

        initWidget(panel);
    }
View Full Code Here

        }

        String linkUrl = Session.getInstance().generateUrl(
                new CreateUrlRequest(page, entityUniqueId));

        Hyperlink link = new InlineHyperlink("", linkUrl);
        main.add(link);
        // Manipulate HTML to put the
        // class, whose CSS includes a badge image,
        // within the anchor tag for the gwt-InlineHyperlink
        if (allowBadge)
        {
            Widget badgeForGroupCoordinator = AvatarBadgeManager.getInstance()
                        .createOverlay(entityUniqueId, size);
            link.getElement().appendChild(badgeForGroupCoordinator
                    .getElement());
        }
        link.getElement().appendChild(avatar.getElement());
    }
View Full Code Here

        insertActionSeparator(groupMetaData);
        groupMetaData.add(new InlineLabel("By: "));
        String url =
                Session.getInstance().generateUrl(
                        new CreateUrlRequest(Page.PEOPLE, group.getPersonCreatedByAccountId()));
        groupMetaData.add(new InlineHyperlink(group.getPersonCreatedByDisplayName(), url));
       
        // Display Business Area (BA) information
        insertActionSeparator(groupMetaData);
        groupMetaData.add(new InlineLabel("BA: "));
        Label baLabel = new InlineLabel(group.getPersonCreatedByCompanyName());
View Full Code Here

            {
                return new InlineLabel(label == null || label.isEmpty() ? name : label + " " + name);
            }
            else if (label == null || label.isEmpty())
            {
                return new InlineHyperlink(name, url);
            }
            else
            {
                Panel main = new FlowPanel();
                main.addStyleName(StaticResourceBundle.INSTANCE.coreCss().inlinePanel());
                main.add(new InlineLabel(label)); // omit trailing space, since that's handled by CSS margins
                main.add(new InlineHyperlink(name, url));
                return main;
            }
        }
        else
        {
View Full Code Here

                line.addStyleName(StaticResourceBundle.INSTANCE.coreCss().url());
                text = new InlineLabel("Modified by: ");
                line.add(text);
                String authorUrl =
                        Session.getInstance().generateUrl(new CreateUrlRequest(Page.PEOPLE, authorAccountId));
                link = new InlineHyperlink(authorName, authorUrl);
                line.add(link);
                mainPanel.add(line);
            }
            else
            {
View Full Code Here

        Widget dateLink;
        if (createPermalink)
        {
            String permalinkUrl = activityLinkBuilder.buildActivityPermalink(msg.getId(), msg.getDestinationStream()
                    .getType(), msg.getDestinationStream().getUniqueIdentifier());
            dateLink = new InlineHyperlink(date, permalinkUrl);
        }
        else
        {
            dateLink = new InlineLabel(date);
        }
View Full Code Here

TOP

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

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.