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

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


    /**
     * 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

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

                        if (empty)
                        {
View Full Code Here

        // 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

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.