* Setup all of the options in the main menu.
*
* @param constants the constant values to use
*/
private void setupMainMenu(ShowcaseConstants constants) {
Tree mainMenu = app.getMainMenu();
// Widgets
TreeItem catWidgets = mainMenu.addItem(constants.categoryWidgets());
setupMainMenuOption(catWidgets, new CwCheckBox(constants),
images.catWidgets());
setupMainMenuOption(catWidgets, new CwRadioButton(constants),
images.catWidgets());
setupMainMenuOption(catWidgets, new CwBasicButton(constants),
images.catWidgets());
setupMainMenuOption(catWidgets, new CwCustomButton(constants),
images.catWidgets());
setupMainMenuOption(catWidgets, new CwFileUpload(constants),
images.catWidgets());
setupMainMenuOption(catWidgets, new CwDatePicker(constants),
images.catWidgets());
setupMainMenuOption(catWidgets, new CwHyperlink(constants),
images.catWidgets());
// Lists
TreeItem catLists = mainMenu.addItem(constants.categoryLists());
setupMainMenuOption(catLists, new CwListBox(constants), images.catLists());
setupMainMenuOption(catLists, new CwSuggestBox(constants),
images.catLists());
setupMainMenuOption(catLists, new CwTree(constants), images.catLists());
setupMainMenuOption(catLists, new CwMenuBar(constants), images.catLists());
setupMainMenuOption(catLists, new CwStackPanel(constants),
images.catLists());
// Text
TreeItem catText = mainMenu.addItem(constants.categoryTextInput());
setupMainMenuOption(catText, new CwBasicText(constants),
images.catTextInput());
setupMainMenuOption(catText, new CwRichText(constants),
images.catTextInput());
// Popups
TreeItem catPopup = mainMenu.addItem(constants.categoryPopups());
setupMainMenuOption(catPopup, new CwBasicPopup(constants),
images.catPopups());
setupMainMenuOption(catPopup, new CwDialogBox(constants),
images.catPopups());
// Panels
TreeItem catPanels = mainMenu.addItem(constants.categoryPanels());
setupMainMenuOption(catPanels, new CwDecoratorPanel(constants),
images.catPanels());
setupMainMenuOption(catPanels, new CwFlowPanel(constants),
images.catPanels());
setupMainMenuOption(catPanels, new CwHorizontalPanel(constants),
images.catPanels());
setupMainMenuOption(catPanels, new CwVerticalPanel(constants),
images.catPanels());
setupMainMenuOption(catPanels, new CwAbsolutePanel(constants),
images.catPanels());
setupMainMenuOption(catPanels, new CwDockPanel(constants),
images.catPanels());
setupMainMenuOption(catPanels, new CwDisclosurePanel(constants),
images.catPanels());
setupMainMenuOption(catPanels, new CwTabPanel(constants),
images.catPanels());
setupMainMenuOption(catPanels, new CwHorizontalSplitPanel(constants),
images.catPanels());
setupMainMenuOption(catPanels, new CwVerticalSplitPanel(constants),
images.catPanels());
// Tables
TreeItem catTables = mainMenu.addItem(constants.categoryTables());
setupMainMenuOption(catTables, new CwGrid(constants), images.catTables());
setupMainMenuOption(catTables, new CwFlexTable(constants),
images.catTables());
// Internationalization
TreeItem catI18N = mainMenu.addItem(constants.categoryI18N());
setupMainMenuOption(catI18N, new CwNumberFormat(constants),
images.catI18N());
setupMainMenuOption(catI18N, new CwDateTimeFormat(constants),
images.catI18N());
setupMainMenuOption(catI18N, new CwMessagesExample(constants),
images.catI18N());
setupMainMenuOption(catI18N, new CwPluralFormsExample(constants),
images.catI18N());
setupMainMenuOption(catI18N, new CwConstantsExample(constants),
images.catI18N());
setupMainMenuOption(catI18N, new CwConstantsWithLookupExample(constants),
images.catI18N());
setupMainMenuOption(catI18N, new CwDictionaryExample(constants),
images.catI18N());
// Other
TreeItem catOther = mainMenu.addItem(constants.categoryOther());
setupMainMenuOption(catOther, new CwAnimation(constants), images.catOther());
setupMainMenuOption(catOther, new CwCookies(constants), images.catOther());
}