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

Examples of com.google.gwt.user.client.ui.InlineLabel.addStyleName()


        moveHandle = new Label("move");
        moveHandle.addStyleName(StaticResourceBundle.INSTANCE.coreCss().moveHandle());
        panel.add(moveHandle);

        InlineLabel seperator = new InlineLabel();
        seperator.addStyleName(StaticResourceBundle.INSTANCE.coreCss().filterSeperator());
        panel.add(seperator);

        seperator.addClickHandler(new ClickHandler()
        {
            public void onClick(final ClickEvent event)
View Full Code Here


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

        // The verb is used for activities that are always now commentable. The msg.isCOmmentable is used for activities
        // that that normally are commentable but the user has turned off.
        if (commentsPanel != null && verbRenderer.getAllowComment() && msg.isCommentable())
        {
            Label commentLink = new InlineLabel("Comment");
            commentLink.addStyleName(StaticResourceBundle.INSTANCE.coreCss().linkedLabel());
            actionsPanel.add(commentLink);

            commentLink.addClickHandler(new ClickHandler()
            {
                public void onClick(final ClickEvent event)
View Full Code Here

        // Share
        if (verbRenderer.getAllowShare() && msg.isShareable())
        {
            insertActionSeparator(actionsPanel);
            Label shareLink = new InlineLabel("Share");
            shareLink.addStyleName(StaticResourceBundle.INSTANCE.coreCss().linkedLabel());
            actionsPanel.add(shareLink);

            shareLink.addClickHandler(new ClickHandler()
            {
                public void onClick(final ClickEvent event)
View Full Code Here

            InlineLabel followers = new InlineLabel("Followers: ");
            followersPanel.add(followers);

            InlineLabel followersCount = new InlineLabel(Integer.toString(person.getFollowersCount()));
            followersCount.addStyleName(StaticResourceBundle.INSTANCE.coreCss().connectionItemFollowersData());
            followersPanel.add(followersCount);

            insertActionSeparator(followersPanel);

            followersPanel.add(new InlineLabel("Added: "));
View Full Code Here

            followersPanel.add(new InlineLabel("Added: "));

            DateFormatter dateFormatter = new DateFormatter(new Date());
            InlineLabel dateAdded = new InlineLabel(dateFormatter.timeAgo(person.getDateAdded(), true));
            dateAdded.addStyleName(StaticResourceBundle.INSTANCE.coreCss().connectionItemFollowersData());
            followersPanel.add(dateAdded);

            infoPanel.add(followersPanel);
        }
View Full Code Here

     *            Panel to put the separator in.
     */
    private void insertActionSeparator(final Panel panel)
    {
        Label sep = new InlineLabel("\u2219");
        sep.addStyleName(StaticResourceBundle.INSTANCE.coreCss().actionLinkSeparator());
        panel.add(sep);
    }
}
View Full Code Here

                    if (feedSubscription.getFeed().getTimeAgo() != null)
                    {
                        lastUpdatedPanel.add(new InlineLabel("Last Updated: "));
                        Label lastUpdateTime = new InlineLabel(feedSubscription.getFeed().getTimeAgo());
                        lastUpdateTime.addStyleName(StaticResourceBundle.INSTANCE.coreCss().light());
                        lastUpdatedPanel.add(lastUpdateTime);
                    }
                    if (feedSubscription.getFeed().getIsFeedBroken() != null
                            && feedSubscription.getFeed().getIsFeedBroken())
                    {
View Full Code Here

                    }
                    if (feedSubscription.getFeed().getIsFeedBroken() != null
                            && feedSubscription.getFeed().getIsFeedBroken())
                    {
                        Label brokenFeedIndicator = new InlineLabel("Feed may be broken, please check the source.");
                        brokenFeedIndicator.addStyleName(StaticResourceBundle.INSTANCE.coreCss().brokenFeedIndicator());
                        lastUpdatedPanel.add(brokenFeedIndicator);
                    }
                    if (lastUpdatedPanel.getWidgetCount() > 0)
                    {
                        dataContainer.add(lastUpdatedPanel);
View Full Code Here

            // Note: using the cheating way: always create the link, let CSS hide it unless the user is actually a
            // coordinator
            insertActionSeparator(actionsPanel)
                    .addStyleName(StaticResourceBundle.INSTANCE.coreCss().ownerOnlyInline());
            Label link = new InlineLabel("Stick");
            link.addStyleName(StaticResourceBundle.INSTANCE.coreCss().linkedLabel());
            link.addStyleName(StaticResourceBundle.INSTANCE.coreCss().ownerOnlyInline());
            actionsPanel.add(link);

            link.addClickHandler(new ClickHandler()
            {
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.