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

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


                if (serviceSpec.isHidden()) {
                    continue;
                }
                final ObjectAdapterMemento serviceAdapterMemento = logicalServiceAction.serviceAdapterMemento;
                final ObjectAction objectAction = logicalServiceAction.objectAction;
                final Builder subMenuItemBuilder = serviceMenuItem.newSubMenuItem(serviceAdapterMemento, objectAction, cssMenuContext);
                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, cssMenuContext);
        } 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, cssMenuContext);
            }
        }
       
        if (subMenuItemBuilder != null) {
            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, cssMenuContext);
                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, actionPromptModalWindowProvider);
        } 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, actionPromptModalWindowProvider);
            }
        }
       
        if (subMenuItemBuilder != null) {
            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, actionPromptModalWindowProvider);
                if (subMenuItemBuilder == null) {
                    // not visible
                    continue;
                }
                subMenuItemBuilder.build();
            }
            if (serviceMenuItem.hasSubMenuItems()) {
                menuItems.add(serviceMenuItem);
            }
        }
View Full Code Here

            // skip if annotated to not be included in repository menu
            if (noAction.getFacet(NotInServiceMenuFacet.class) != null) {
                continue;
            }
            final Builder subMenuItemBuilder = serviceMenuItem.newSubMenuItem(serviceAdapterMemento, noAction, getLinkFactory());
            if (subMenuItemBuilder != null) {
                // not visible
                subMenuItemBuilder.build();
            }
        }
    }
View Full Code Here

            addMenuItemForAction(parent, action);
        }
    }

    private void addMenuItemForActionSet(final CssMenuItem parent, final ObjectAction action) {
        final Builder builder = parent.newSubMenuItem(action.getName());
        final List<ObjectAction> actions = action.getActions();
        addMenuItems(builder.itemBeingBuilt(), actions);
        if (builder.itemBeingBuilt().hasSubMenuItems()) {
            builder.build();
        }
    }
View Full Code Here

            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

            // skip if annotated to not be included in repository menu
            if (noAction.getFacet(NotInServiceMenuFacet.class) != null) {
                continue;
            }
            final Builder subMenuItemBuilder =
                serviceMenuItem.newSubMenuItem(serviceAdapterMemento, noAction, getLinkFactory());
            if (subMenuItemBuilder != null) {
                // not visible
                subMenuItemBuilder.build();
            }
        }
    }
View Full Code Here

            addMenuItemForAction(parent, action);
        }
    }

    private void addMenuItemForActionSet(final CssMenuItem parent, final ObjectAction action) {
        final Builder builder = parent.newSubMenuItem(action.getName());
        final List<ObjectAction> actions = action.getActions();
        addMenuItems(builder.itemBeingBuilt(), actions);
        if (builder.itemBeingBuilt().hasSubMenuItems()) {
            builder.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.