Package com.alkacon.acacia.client.ui

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


     */
    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()),
View Full Code Here


        while (!m_submenus.isEmpty() && (getLastSubmenu() != submenu)) {
            removeSubmenu(getLastSubmenu());
        }
        // if it is a root entry, switch the attribute choice widget
        if (submenu == null) {
            AttributeChoiceWidget choiceWidget = entryWidget.getAttributeChoiceWidget();
            if (choiceWidget != m_choice) {
                closeAllChoices();
                m_choice = choiceWidget;
            }
        }
View Full Code Here

TOP

Related Classes of com.alkacon.acacia.client.ui.AttributeChoiceWidget

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.