Package com.ponysdk.impl.webapplication.page

Examples of com.ponysdk.impl.webapplication.page.PageActivity


    @Override
    public void updateView(final Place place) {
        if (place instanceof HasPageName) {
            final String pageName = ((HasPageName) place).getPageName();
            final PageActivity pageActivity = pageProvider.getPageActivity(pageName);
            if (pageActivity != null && pageActivity.getPageName() != null) {
                menuView.selectItem(new MenuItem(pageActivity.getPageName(), pageActivity.getPageCategories()));
            }
        }
    }
View Full Code Here


            notificationActivity.start(applicationView.getLogs(), place);
        }

        if (place instanceof HasPageName) {
            final HasPageName pagePlace = (HasPageName) place;
            final PageActivity pageActivity = pageProvider.getPageActivity(pagePlace.getPageName());

            if (!com.ponysdk.core.security.SecurityManager.checkPermission(pageActivity.getPermission())) throw new RuntimeException("Missing permission #" + pageActivity.getPermission());

            if (currentPageActivity != null) {
                currentPageActivity.leave();
            }

            currentPageActivity = pageActivity;

            pageActivity.start(applicationView.getBody(), place);
        }

        if (place instanceof HasActivity) {
            final HasActivity activityPlace = (HasActivity) place;
            activityPlace.getActivity().start(applicationView.getBody(), place);
View Full Code Here

TOP

Related Classes of com.ponysdk.impl.webapplication.page.PageActivity

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.