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

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


        Panel left = new FlowPanel();
        left.addStyleName(StaticResourceBundle.INSTANCE.coreCss().connectionColLeft());
        left.addStyleName(StaticResourceBundle.INSTANCE.coreCss().connectionCol());
        Panel right = new FlowPanel();
        right.addStyleName(StaticResourceBundle.INSTANCE.coreCss().connectionColRight());
        right.addStyleName(StaticResourceBundle.INSTANCE.coreCss().connectionCol());

        int count = 0;

        if (items.getTotal() == 0)
        {
View Full Code Here


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

        groupPanel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().pendingGroup());

        // -- buttons panel (left side) --

        final Panel buttonsPanel = new FlowPanel();
        buttonsPanel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().pendingGroupButtons());
        groupPanel.add(buttonsPanel);

        final Label confirmButton = new Label("Confirm");
        confirmButton.addStyleName(StaticResourceBundle.INSTANCE.coreCss().approveButton());
        buttonsPanel.add(confirmButton);
View Full Code Here

        confirmButton.addClickHandler(new ClickHandler()
        {
            public void onClick(final ClickEvent event)
            {
                buttonsPanel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().waitActive());

                PendingGroupsModel.getInstance().update(new ReviewPendingGroupRequest(group.getShortName(), true));
            }
        });
View Full Code Here

        {
            public void onClick(final ClickEvent event)
            {
                if (new WidgetJSNIFacadeImpl().confirm("Are you sure you want to deny creation of this group?"))
                {
                    buttonsPanel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().waitActive());

                    PendingGroupsModel.getInstance()
                            .update(new ReviewPendingGroupRequest(group.getShortName(), false));
                }
            }
View Full Code Here

        String resourceTitle = props.get("resourceTitle");
        String siteUrl = props.get("siteUrl");
        String siteTitle = props.get("siteTitle");

        Panel main = new FlowPanel();
        main.addStyleName(StaticResourceBundle.INSTANCE.coreCss().inlinePanel());

        main.add(new InlineLabel("commented on"));
        main.add(new Anchor(resourceTitle, resourceUrl));
        if (resourceTitle != null && !resourceTitle.isEmpty())
        {
View Full Code Here

     * {@inheritDoc}
     */
    public Panel render(final PersonModelView item)
    {
        Panel panel = new FlowPanel();
        panel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().pendingGroupMembershipItem());

        // -- build UI --

        // buttons panel (left side)

View Full Code Here

        // -- build UI --

        // buttons panel (left side)

        final Panel buttonsPanel = new FlowPanel();
        buttonsPanel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().pendingButtons());

        final Label approveButton = new Label("Approve");
        approveButton.addStyleName(StaticResourceBundle.INSTANCE.coreCss().approveButton());
        buttonsPanel.add(approveButton);
View Full Code Here

        approveButton.addClickHandler(new ClickHandler()
        {
            public void onClick(final ClickEvent event)
            {
                buttonsPanel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().waitActive());

                GroupMembersModel.getInstance().insert(
                        new SetFollowingStatusRequest(item.getAccountId(), groupShortname, EntityType.GROUP, false,
                                Follower.FollowerStatus.FOLLOWING));
            }
View Full Code Here

        {
            public void onClick(final ClickEvent event)
            {
                if (new WidgetJSNIFacadeImpl().confirm("Are you sure you want to deny this user membership?"))
                {
                    buttonsPanel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().waitActive());

                     GroupMembershipRequestModel.getInstance().delete(
                            new RequestForGroupMembershipRequest(groupId, item.getEntityId()));
                }
            }
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.