Examples of TabsConfiguration


Examples of org.zkoss.ganttz.adapters.TabsConfiguration

        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
Copyright © 2018 www.massapi.com. 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.