Examples of InlineHyperlink


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

        }

        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

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

        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

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

            {
                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

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

                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

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

        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

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

            }

            // May be internal or external; open in new window unless internal.
            if (url.charAt(0) == '#')
            {
                parent.add(new InlineHyperlink(segment.getContent(), url.substring(1)));
            }
            else
            {
                AnchorElement anchor = doc.createAnchorElement();
                anchor.setHref(url);
View Full Code Here

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

    /**
     * Constructor.
     */
    public StreamAddAppWidget()
    {
        addGadgetLink = new InlineHyperlink("create app", "");
        addGadgetLinkWrapper.addStyleName(StaticResourceBundle.INSTANCE.coreCss().addAsGadget());
        addGadgetLinkWrapper.add(new SimplePanel()); // to hold image
        addGadgetLinkWrapper.add(addGadgetLink);

        initWidget(addGadgetLinkWrapper);
View Full Code Here

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

                            }
                            else
                            {
                                streamHashtags.add(new InlineLabel(" "));
                            }
                            streamHashtags.add(new InlineHyperlink(tag, streamSearchLinkBuilder
                                    .buildHashtagSearchLink(tag, null).substring(1)));
                        }

                        if (empty)
                        {
View Full Code Here

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

        // create timestamp as permalink
        String date = new DateFormatter(new Date()).timeAgo(msg.getPostedTime());
        Widget dateLink;
        String permalinkUrl = activityLinkBuilder.buildActivityPermalink(msg.getId(), destinationStream.getType(),
                destinationStream.getUniqueIdentifier());
        dateLink = new InlineHyperlink(date, permalinkUrl);
        dateLink.addStyleName(StaticResourceBundle.INSTANCE.coreCss().messageTimestampLink());
        timestampActions.add(dateLink);

        if (msg.getAppName() != null)
        {
            String appSource = msg.getAppSource();
            if (appSource != null)
            {
                FlowPanel viaPanel = new FlowPanel();
                viaPanel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().viaMetadata());
                viaPanel.add(new InlineLabel("via "));
                viaPanel.add(new Anchor(msg.getAppName(), appSource));
                timestampActions.add(viaPanel);
            }
            else
            {
                InlineLabel viaLine = new InlineLabel("via " + msg.getAppName());
                viaLine.addStyleName(StaticResourceBundle.INSTANCE.coreCss().viaMetadata());
                timestampActions.add(viaLine);
            }
            // TODO: If appSource is not supplied, the link should go to the respective galleries for apps and plugins.
            // However, the app galery requires knowing the start page tab id, and the worthwhile plugin gallery is only
            // available to coordinators.
        }

        ComplexPanel actionsPanel = new FlowPanel();
        actionsPanel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().messageActionsArea());

        // Show comments
        InlineHyperlink showCommentsLink = new InlineHyperlink("Show Comments", permalinkUrl);
        actionsPanel.add(showCommentsLink);

        // Share
        if (verbRenderer.getAllowShare() && msg.isShareable())
        {
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.