final GroupPrivacySettings radioButtonGroup = new GroupPrivacySettings("Privacy Settings",
DomainGroupModelView.PRIVACY_KEY, "privacySettings", "");
radioButtonGroup.clearGroup();
radioButtonGroup.addRadioButton("Public", "Allow all users to view this profile.", "true", Boolean.TRUE);
BasicRadioButtonFormElement privateButton = radioButtonGroup.addRadioButton("Private",
"Restrict access to users approved by this group's coordinators.", "false", Boolean.FALSE);
Panel extraInstructions = new FlowPanel();
extraInstructions.addStyleName(StaticResourceBundle.INSTANCE.coreCss().groupPrivateExtraNote());
extraInstructions.add(new InlineLabel("Please Note: "));
extraInstructions.add(new InlineLabel(
"This group's name and description will be visible whenever employees browse or search profiles."));
privateButton.addToInstructions(extraInstructions);
form.addFormElement(radioButtonGroup);
form.addClear();