Package org.eurekastreams.web.client.ui.common.stream.renderers

Examples of org.eurekastreams.web.client.ui.common.stream.renderers.StreamMessageItemRenderer


            }
        });

        // prepare the StaticResourceBundle.INSTANCE.coreCss().filters()
        // flagged content StaticResourceBundle.INSTANCE.coreCss().filter()
        StreamMessageItemRenderer flaggedRenderer = new StreamMessageItemRenderer(ShowRecipient.YES);
        flaggedRenderer.setShowManageFlagged(true);
        flaggedRenderer.setShowComment(true);

        BaseActivityLinkBuilder activityLinkBuilder = new InContextActivityLinkBuilder();
        activityLinkBuilder.addExtraParameter("manageFlagged", "true");
        flaggedRenderer.setActivityLinkBuilder(activityLinkBuilder);
        adminTabContent.addSet(flaggedActivitiesFilterName, FlaggedActivityModel.getInstance(), flaggedRenderer,
                new GetFlaggedActivitiesRequest(0, 0));
        // pending groups StaticResourceBundle.INSTANCE.coreCss().filter()
        adminTabContent.addSet(pendingGroupsFilterName, PendingGroupsModel.getInstance(), new PendingGroupRenderer(),
                new GetPendingGroupsRequest(0, 0));
View Full Code Here


     * @param jsonRequest
     *            Stream query as a JSON string.
     */
    public ReadStreamWidget(final String jsonRequest)
    {
        final StreamPanel streamPanel = new StreamPanel(ShowRecipient.YES, new StreamMessageItemRenderer(
                ShowRecipient.YES)
        {
            {
                setCreatePermalink(false);
            }
View Full Code Here

            showAllPanel.add(new Hyperlink(title, Session.getInstance().generateUrl(
                    new CreateUrlRequest(page, destinationStream.getUniqueId()))));
            add(showAllPanel);
        }

        StreamMessageItemRenderer renderer = new StreamMessageItemRenderer(showRecipient);
        renderer.setShowComment(showComment);
        renderer.setShowManageFlagged(manageFlagged);
        renderer.setSingleView(true);

        add(renderer.render(activity));
        Session.getInstance().getEventBus().notifyObservers(new SwitchedToActivityDetailViewEvent());
    }
View Full Code Here

     * @param showRecipients
     *            if recipients should be shown.
     */
    public StreamPanel(final ShowRecipient showRecipients)
    {
        this(showRecipients, new StreamMessageItemRenderer(showRecipients));
    }
View Full Code Here

        body.add(errorMsg);

        postToPanel = new PostToPanel(postScope, true);
        body.add(postToPanel);

        StreamMessageItemRenderer messageRenderer = new StreamMessageItemRenderer(ShowRecipient.NO, State.READONLY);

        body.add(messageRenderer.render(sharedMessage));

        Label messageLabel = new Label("Comment:");
        messageLabel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().formLabel());
        body.add(messageLabel);
        commentBox.addStyleName(StaticResourceBundle.INSTANCE.coreCss().messageBox());
View Full Code Here

TOP

Related Classes of org.eurekastreams.web.client.ui.common.stream.renderers.StreamMessageItemRenderer

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.