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

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


            final VerbRenderer verbRenderer)
    {
        final EventBus eventBus = Session.getInstance().getEventBus();

        Panel actionsPanel = new FlowPanel();
        actionsPanel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().messageActionsArea());

        // Comment
        // 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())
View Full Code Here


     * @return Panel with the controls.
     */
    private Widget buildManageFlaggedControls(final ActivityDTO msg, final Panel mainPanel)
    {
        final Panel buttonsPanel = new FlowPanel();
        buttonsPanel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().flagControls());

        Label ignoreButton = new Label("Ignore");
        ignoreButton.addStyleName(StaticResourceBundle.INSTANCE.coreCss().flagIgnoreButton());
        buttonsPanel.add(ignoreButton);
        ignoreButton.addClickHandler(new ClickHandler()
View Full Code Here

        buttonsPanel.add(ignoreButton);
        ignoreButton.addClickHandler(new ClickHandler()
        {
            public void onClick(final ClickEvent ev)
            {
                buttonsPanel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().waitActive());
                if (singleView)
                {
                    Session.getInstance()
                            .getEventBus()
                            .addObserver(UpdatedActivityFlagResponseEvent.class,
View Full Code Here

        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);
        entryPanel.add(message);

        postContainer.add(entryPanel);
View Full Code Here

        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);
        entryPanel.add(message);
        SimplePanel breakPanel = new SimplePanel();
        breakPanel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().breakClass());
View Full Code Here

      streamPanel.clear();
    errorPanel.clear();
    postBox.setVisible(false);
   
      Panel errorReport = new FlowPanel();
        errorReport.addStyleName(StaticResourceBundle.INSTANCE.coreCss().warningReport());

        FlowPanel centeringPanel = new FlowPanel();
        centeringPanel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().warningReportContainer());
        centeringPanel.add(errorReport);
        streamPanel.add(centeringPanel);
View Full Code Here

        final SimplePanel textWrapper = new SimplePanel();
        textWrapper.addStyleName(StaticResourceBundle.INSTANCE.coreCss().inputWrapper());
        textWrapper.add(membershipCriteria);

        Panel textWrapperWrapper = new FlowPanel();
        textWrapperWrapper.addStyleName(StaticResourceBundle.INSTANCE.coreCss().inputWrapperWrapper());
        requiredLabel = new Label("(required)");
        requiredLabel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().requiredFormLabel());
        textWrapperWrapper.add(requiredLabel);
        textWrapperWrapper.add(textWrapper);
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.