DisclosurePanel disclosureStatus = new DisclosurePanel(
"More options for status updates");
// Advanced settings status
FlexTable advancedStatus = new FlexTable();
PrivacySelector advancedstatus = new PrivacySelector("advancedstatus");
addWidgetRow(advancedStatus, "See your status updates", advancedstatus);
disclosureStatus.add(advancedStatus);
// Simple privacy settings
FlexTable simple = new FlexTable();
simple.addStyleName("privacy");
PrivacySelector status = new PrivacySelector("status");
addWidgetRow(simple, "See your posts", status);
PrivacySelector comment = new PrivacySelector("status");
addWidgetRow(simple, "Comment on your posts", comment);
PrivacySelector profile = new PrivacySelector("profile");
addWidgetRow(simple, "See your profile information", profile);
PrivacySelector contact = new PrivacySelector("contact");
addWidgetRow(simple, "See your contact information", contact);
PrivacySelector following = new PrivacySelector("following");
addWidgetRow(simple, "See people you're following", following);
PrivacySelector friends = new PrivacySelector("friends");
addWidgetRow(simple, "See your friends", friends);
sectionSimple.add(simple);
privacy.add(sectionSimple);