Examples of ChoiceSubmenu


Examples of com.alkacon.acacia.client.ui.ChoiceSubmenu

    protected void addSubmenu(ChoiceMenuEntryWidget entryWidget) {

        ChoiceMenuEntryBean menuEntry = entryWidget.getEntryBean();
        AsyncCallback<ChoiceMenuEntryBean> selectHandler = entryWidget.getSelectHandler();
        AttributeChoiceWidget choiceWidget = entryWidget.getAttributeChoiceWidget();
        ChoiceSubmenu submenu = new ChoiceSubmenu(menuEntry);
        submenu.positionDeferred(entryWidget);
        choiceWidget.getSubmenuPanel().add(submenu);
        m_submenus.add(submenu);
        for (ChoiceMenuEntryBean subEntry : menuEntry.getChildren()) {
            submenu.addChoice(new ChoiceMenuEntryWidget(
                m_widgetService.getAttributeLabel(subEntry.getPathComponent()),
                m_widgetService.getAttributeHelp(subEntry.getPathComponent()),
                subEntry,
                selectHandler,
                choiceWidget,
View Full Code Here

Examples of com.alkacon.acacia.client.ui.ChoiceSubmenu

     *
     * @param entryWidget the menu entry over which the user is hovering
     */
    protected void cleanUpSubmenus(ChoiceMenuEntryWidget entryWidget) {

        ChoiceSubmenu submenu = entryWidget.getSubmenu();
        // First remove all submenus which are deeper than the submenu in which the current entry is located 
        while (!m_submenus.isEmpty() && (getLastSubmenu() != submenu)) {
            removeSubmenu(getLastSubmenu());
        }
        // if it is a root entry, switch the attribute choice widget
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.