Package org.eurekastreams.web.client.ui.common.form.elements

Examples of org.eurekastreams.web.client.ui.common.form.elements.BasicCheckBoxFormElement


        FlowPanel breakdiv = new FlowPanel();

        breakdiv.addStyleName(StaticResourceBundle.INSTANCE.coreCss().breakClass());
        FlowPanel textDiv = new FlowPanel();
        textDiv.add(textContent);
        dontShowAgain = new BasicCheckBoxFormElement(null, ((Long) tutorialVideo.getEntityId()).toString(),
                "Don't show this again", false, false);

        textContent.setHTML("<b>" + tutorialVideo.getInnerContentTitle() + "</b><br/>"
                + tutorialVideo.getInnerContent());
        textDiv.addStyleName(StaticResourceBundle.INSTANCE.coreCss().content_text());
View Full Code Here


        }

        promptInterval = new TermsOfServicePromptIntervalFormElement(promptVal, "tosPromptInterval");
        form.addFormElement(new UserAssociationFormElement(systemSettingValues));

        BasicCheckBoxFormElement sendEmails = new BasicCheckBoxFormElement("", "sendWelcomeEmails",
                "Send email invitations to new users as their accounts are created.", false,
                systemSettingValues.getSendWelcomeEmails());

        sendEmails.addStyleName(StaticResourceBundle.INSTANCE.coreCss().welcomeEmailCheckbox());

        membershipRefreshButton = initializeRefreshButton();

        FlowPanel clearPanel = new FlowPanel();

        clearPanel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().clear());

        sendEmails.add(membershipRefreshButton);
        form.addFormElement(sendEmails);

        form.addFormDivider();
        form.addWidget(new SendNotificationWidget());
        form.addFormDivider();
        form.addFormElement(hideableSiteLabel);
        form.addFormDivider();
        form.addFormElement(hideableContentWarning);
        form.addFormDivider();
        form.addFormElement(hideablePluginWarning);
        form.addFormDivider();
        form.addFormElement(tosElement);
        form.addFormElement(promptInterval);
        form.addFormDivider();

        // Help Page

        form.addFormElement(new BasicTextBoxFormElement(MAX_GROUP_NAME, false, "Support Stream",
                "supportStreamGroupShortName", systemSettingValues.getSupportStreamGroupShortName(),
                "Enter the name of the stream you want to display on the help page", false));
        form.addFormDivider();

        form.addFormElement(activityExp);
        form.addFormDivider();

        BasicCheckBoxFormElement groupCreationPolicy = new BasicCheckBoxFormElement("New Group Moderation",
                "allUsersCanCreateGroups", "Enable Moderation.",
                "By enabling moderation, system administrators will be required to review new group requests.  "
                        + "Groups pending approval will be listed under the pending tab of system settings.", false,
                !systemSettingValues.getAllUsersCanCreateGroups());

        // The key is true for "allowing group creation" and the checkbox displays "allowing moderation". Since
        // these are opposites, the value needs to be reversed when the form gets submitted.
        groupCreationPolicy.setReverseValue(true);

        form.addFormElement(groupCreationPolicy);
        form.addFormDivider();

        if (!tosElement.isChecked())
View Full Code Here

                        form.addFormDivider();
                        form.addFormElement(new BasicTextBoxFormElement(MAX_EMAIL, false, "Email",
                                PersonModelView.EMAIL_KEY, person.getEmail(), "(ex. user@example.com)", true));

                        form.addFormDivider();
                        BasicCheckBoxFormElement blockWallPost = new BasicCheckBoxFormElement("Stream Moderation",
                                "streamPostable", " Allow others to post to your stream", false, person
                                        .isStreamPostable());
                        BasicCheckBoxFormElement blockCommentPost = new BasicCheckBoxFormElement(null, "commentable",
                                " Allow others to comment on activity in your stream", false, person.isCommentable());

                        blockWallPost.addStyleName(StaticResourceBundle.INSTANCE.coreCss().streamModeration());
                        blockCommentPost.addStyleName(StaticResourceBundle.INSTANCE.coreCss().streamModeration());
                        blockCommentPost.addStyleName(StaticResourceBundle.INSTANCE.coreCss().commentModeration());

                        form.addFormElement(blockWallPost);
                        form.addFormElement(blockCommentPost);
                        form.addFormDivider();
View Full Code Here

        }

        form.addFormDivider();

        // TODO: evidently this is supposed to go away
        BasicCheckBoxFormElement blockWallPost = new BasicCheckBoxFormElement("Stream Moderation",
                DomainGroupModelView.STREAM_POSTABLE_KEY, "Allow others to post to your group's stream", false, entity
                        .isStreamPostable());
        BasicCheckBoxFormElement blockCommentPost = new BasicCheckBoxFormElement(null,
                DomainGroupModelView.STREAM_COMMENTABLE_KEY,
                "Allow others to comment on activity in your group's stream", false, entity.isCommentable());

        blockWallPost.addStyleName(StaticResourceBundle.INSTANCE.coreCss().streamModeration());
        blockCommentPost.addStyleName(StaticResourceBundle.INSTANCE.coreCss().streamModeration());
        blockCommentPost.addStyleName(StaticResourceBundle.INSTANCE.coreCss().commentModeration());

        form.addFormElement(blockWallPost);
        form.addFormElement(blockCommentPost);
        form.addFormDivider();
View Full Code Here

        spinny = new FlowPanel();
        spinny.addStyleName(StaticResourceBundle.INSTANCE.coreCss().gadgetsGadgetLoading());

        this.add(spinny);

        final BasicCheckBoxFormElement lastCheckBox = new BasicCheckBoxFormElement("Terms of Use", "EUREKA:TOS",
                "I understand that the plugin I am about to configure will import activity "
                        + "into this stream and that the content I am sharing is consistent with the Eureka "
                        + "Streams terms of service.", false, mode.equals(Method.UPDATE));

        Session.getInstance().getEventBus().addObserver(GotSystemSettingsResponseEvent.class,
                new Observer<GotSystemSettingsResponseEvent>()
                {

                    public void update(final GotSystemSettingsResponseEvent event)
                    {
                        lastCheckBox.addAdditionalInstructions(new HTML(event.getResponse().getPluginWarning()));
                    }
                });
        SystemSettingsModel.getInstance().fetch(null, true);

        lastCheckBox.addStyleName(StaticResourceBundle.INSTANCE.coreCss().streamPluginCheckbox());

        formBuilder.setOnCancelHistoryToken(History.getToken());
        formBuilder.addWidget(new PluginMetaDataDescriptionPanel(metaData));
        formBuilder.addLastFormElement(lastCheckBox);
View Full Code Here

        {
            checked = Boolean.valueOf((String) confValues.get(inKey));
        }
        boolean required = setupRequired(inKey, requiredText);

        formBuilder.addFormElement(new BasicCheckBoxFormElement(labelVal, inKey, inInstructions, required, checked));
        hideSpinny();
    }
View Full Code Here

TOP

Related Classes of org.eurekastreams.web.client.ui.common.form.elements.BasicCheckBoxFormElement

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.