Package org.apache.isis.viewer.wicket.ui.components.widgets.cssmenu.CssMenuItem

Examples of org.apache.isis.viewer.wicket.ui.components.widgets.cssmenu.CssMenuItem.Builder


            return;
        }

        final ObjectAdapterMemento serviceAdapterMemento = determineAdapterFor(contributedAction);

        final Builder subMenuItemBuilder =
            parent.newSubMenuItem(serviceAdapterMemento, contributedAction, cssMenuLinkFactory);
        if (subMenuItemBuilder != null) {
            // could be null if invisible
            subMenuItemBuilder.build();
        }
    }
View Full Code Here


                if (serviceSpec.isHidden()) {
                    continue;
                }
                final ObjectAdapterMemento serviceAdapterMemento = logicalServiceAction.serviceAdapterMemento;
                final ObjectAction objectAction = logicalServiceAction.objectAction;
                final Builder subMenuItemBuilder = serviceMenuItem.newSubMenuItem(serviceAdapterMemento, objectAction, cssMenuLinkFactory);
                if (subMenuItemBuilder == null) {
                    // not visible
                    continue;
                }
                subMenuItemBuilder.build();
            }
            if (serviceMenuItem.hasSubMenuItems()) {
                menuItems.add(serviceMenuItem);
            }
        }
View Full Code Here

        if (notContributed != null && notContributed.toActions()) {
            // skip if is an action that has been annotated to not be contributed
            return;
        }

        Builder subMenuItemBuilder = null;
       
        final ObjectAdapterMemento targetAdapterMemento = adapterMemento; // determineAdapterFor(action);
        if(targetAdapterMemento != null) {
            // against an entity or a service (if a contributed action)
            subMenuItemBuilder = parent.newSubMenuItem(targetAdapterMemento, action, cssMenuLinkFactory);
        } else {
            if (action.containsDoOpFacet(BulkFacet.class)) {
                // ignore fact have no target action;
                // we expect that the link factory is able to handle this
                // (ie will iterate through all objects from a list and invoke in bulk)
                subMenuItemBuilder = parent.newSubMenuItem(action, cssMenuLinkFactory);
            }
        }
       
        if (subMenuItemBuilder != null) {
            subMenuItemBuilder.build();
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.isis.viewer.wicket.ui.components.widgets.cssmenu.CssMenuItem.Builder

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.