Package com.volantis.mcs.protocols.menu.shared.model

Examples of com.volantis.mcs.protocols.menu.shared.model.ConcreteMenuItemGroup


     * one, or null otherwise.
     *
     * @return the current entity or null if not of the required class
     */
    private ConcreteMenuItemGroup getCurrentMenuItemGroup() {
        ConcreteMenuItemGroup current = null;

        if (currentEntity instanceof ConcreteMenuItemGroup) {
            current = (ConcreteMenuItemGroup) currentEntity;
        }

View Full Code Here


    // javadoc inherited
    public void startMenuGroup() throws BuilderException {
        ConcreteMenu parentMenu = getCurrentMenu();

        if (parentMenu != null) {
            ConcreteMenuItemGroup group = new ConcreteMenuItemGroup(
                    new ConcreteElementDetails());
            parentMenu.add(group);
            push(group);
        } else {
            reportBadParent(MenuItemGroup.class);
View Full Code Here

        }
    }

    // javadoc inherited
    public void endMenuGroup() throws BuilderException {
        ConcreteMenuItemGroup group = getCurrentMenuItemGroup();

        if (group != null) {
            checkGroup(group);

            pop();
View Full Code Here

                            null,
                            new ConcreteMenuText()));
            parentMenu.add(item);
            push(item);
        } else {
            ConcreteMenuItemGroup parentGroup = getCurrentMenuItemGroup();

            if (parentGroup != null) {
                ConcreteMenuItem item = new ConcreteMenuItem(
                        new ConcreteElementDetails(),
                        new ConcreteMenuLabel(
                                null,
                                new ConcreteMenuText()));
                parentGroup.add(item);
                push(item);
            } else {
                reportBadParent(MenuItem.class);
            }
        }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.protocols.menu.shared.model.ConcreteMenuItemGroup

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.