Package org.zkoss.ganttz.adapters

Examples of org.zkoss.ganttz.adapters.TabsConfiguration$ChangeableTab


        final State<Void> typeChanged = typeChangedState();
        advancedAllocationTab = doFeedbackOn(AdvancedAllocationTabCreator
                .create(mode, transactionService, planningStateCreator,
                        returnToPlanningTab(), breadcrumbs));

        TabsConfiguration tabsConfiguration = TabsConfiguration.create()
            .add(tabWithNameReloading(planningTab, typeChanged))
            .add(tabWithNameReloading(ordersTab, typeChanged));
        if (SecurityUtils.isSuperuserOrUserInRoles(UserRole.ROLE_PLANNING)) {
            tabsConfiguration.add(
                    tabWithNameReloading(resourceLoadTab, typeChanged)).add(
                    tabWithNameReloading(limitingResourcesTab, typeChanged));
        } else {
            tabsConfiguration.add(visibleOnlyAtOrderModeWithNameReloading(
                    resourceLoadTab, typeChanged));
        }
        tabsConfiguration.add(visibleOnlyAtOrderMode(advancedAllocationTab))
            .add(visibleOnlyAtOrderMode(dashboardTab));

        if (isMontecarloVisible) {
            tabsConfiguration.add(visibleOnlyAtOrderMode(monteCarloTab));
        }

        return tabsConfiguration;
    }
View Full Code Here

TOP

Related Classes of org.zkoss.ganttz.adapters.TabsConfiguration$ChangeableTab

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.