Examples of AvatarWidget


Examples of org.eurekastreams.web.client.ui.common.avatar.AvatarWidget

     */
    public void activate()
    {
        clear();
        this.setVisible(true);
        Widget avatar = new AvatarWidget(Session.getInstance().getCurrentPerson().getAvatarId(), EntityType.PERSON,
                Size.VerySmall);
        avatar.addStyleName(StaticResourceBundle.INSTANCE.coreCss().avatar());
        this.add(avatar);

        FlowPanel body = new FlowPanel();
        body.addStyleName(StaticResourceBundle.INSTANCE.coreCss().body());

View Full Code Here

Examples of org.eurekastreams.web.client.ui.common.avatar.AvatarWidget

                        widget.removeStyleName(StaticResourceBundle.INSTANCE.coreCss().eurekaConnectLoading());
                        PersonModelView entity = event.getResponse();

                        if (entity == null)
                        {
                            final AvatarWidget blankAvatar = new AvatarWidget(EntityType.PERSON, Size.Normal);
                            blankAvatar.addStyleName(StaticResourceBundle.INSTANCE.coreCss()
                                    .eurekaConnectBadgeAvatar());

                            widget.add(blankAvatar);

                            final Label blankName = new Label(accountId);
View Full Code Here

Examples of org.eurekastreams.web.client.ui.common.avatar.AvatarWidget

     * @return the image.
     */
    public Widget getImage(final String imageId)
    {
        entity.setAvatarId(imageId);
        return new AvatarWidget(imageId, entityType, AvatarWidget.Size.Normal);
    }
View Full Code Here

Examples of org.eurekastreams.web.client.ui.common.avatar.AvatarWidget

            {
                onCommentChanges();
            }
        });

        AvatarWidget avatar = new AvatarWidget(person, EntityType.PERSON, Size.VerySmall);
        avatar.addStyleName(StaticResourceBundle.INSTANCE.coreCss().postEntryAvatar());

        Panel entryPanel = new FlowPanel();
        entryPanel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().postEntryPanel());
        entryPanel.add(avatar);
        entryPanel.add(postInfoContainer);
View Full Code Here

Examples of org.eurekastreams.web.client.ui.common.avatar.AvatarWidget

     *            avatar id of the user.
     * @return the avatar panel.
     */
    public Widget render(final Long id, final String avatarId)
    {
        AvatarWidget avatar = new AvatarWidget(avatarId, EntityType.PERSON, Size.Small);
        avatar.addStyleName(StaticResourceBundle.INSTANCE.coreCss().avatar());
        return avatar;
    }
View Full Code Here

Examples of org.eurekastreams.web.client.ui.common.avatar.AvatarWidget

     *            the type.
     * @return the avatar panel.
     */
    public Widget render(final Long id, final String avatarId, final EntityType type)
    {
        AvatarWidget avatar = new AvatarWidget(avatarId, type, Size.Small);
        avatar.addStyleName(StaticResourceBundle.INSTANCE.coreCss().avatar());
        return avatar;
    }
View Full Code Here

Examples of org.eurekastreams.web.client.ui.common.avatar.AvatarWidget

     *            the avatar size.
     * @return the avatar panel.
     */
    public Widget render(final Long id, final String avatarId, final EntityType type, final Size size)
    {
        AvatarWidget avatar = new AvatarWidget(avatarId, type, size);
        avatar.addStyleName(StaticResourceBundle.INSTANCE.coreCss().avatar());
        return avatar;
    }
View Full Code Here

Examples of org.eurekastreams.web.client.ui.common.avatar.AvatarWidget

        postInfoContainer.add(postButton);

        charsRemaining.addStyleName(StaticResourceBundle.INSTANCE.coreCss().charactersRemaining());
        postInfoContainer.add(charsRemaining);

        AvatarWidget avatar = new AvatarWidget(Session.getInstance().getCurrentPerson(), EntityType.PERSON,
                Size.VerySmall);
        avatar.addStyleName(StaticResourceBundle.INSTANCE.coreCss().postEntryAvatar());

        Panel entryPanel = new FlowPanel();
        entryPanel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().postEntryPanel());
        entryPanel.add(avatar);
        entryPanel.add(postInfoContainer);
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.