Package org.apache.isis.viewer.wicket.model.models

Examples of org.apache.isis.viewer.wicket.model.models.PageType


            @Override
            protected void populateItem(ListItem<BookmarkTreeNode> item) {
                final BookmarkTreeNode node = item.getModelObject();
                try {
                    final PageType pageType = node.getPageType();
                    final Class<? extends Page> pageClass = pageClassRegistry.getPageClass(pageType);

                    final AjaxLink<Object> clearBookmarkLink = new AjaxLink<Object>(ID_CLEAR_BOOKMARK_LINK) {

                        private static final long serialVersionUID = 1L;
View Full Code Here


   
    private IsisWicketApplication application;

    @Test
    public void delegatesToPageClassRegistryToObtainPageTypes() {
        final PageType pageType = PageType.HOME;
        final Class<HomePage> expectedPageClass = HomePage.class;
       
        application = new IsisWicketApplication() {
            private static final long serialVersionUID = 1L;
View Full Code Here

    }

    @Test
    public void delegatesToPageClassRegistryToObtainPageTypes_ForSignIn() {

        final PageType pageType = PageType.SIGN_IN;
        final Class<WebPage> expectedPageClass = WebPage.class;

        final PageClassRegistry mockPageClassRegistry = context.mock(PageClassRegistry.class);
        application = new IsisWicketApplication() {
            private static final long serialVersionUID = 1L;
View Full Code Here

            @Override
            protected void populateItem(ListItem<BookmarkTreeNode> item) {
                final BookmarkTreeNode node = item.getModelObject();
                try {
                    final PageType pageType = node.getPageType();
                    final Class<? extends Page> pageClass = pageClassRegistry.getPageClass(pageType);

                    final AjaxLink<Object> clearBookmarkLink = new AjaxLink<Object>(ID_CLEAR_BOOKMARK_LINK) {

                        private static final long serialVersionUID = 1L;
View Full Code Here

            @Override
            protected void populateItem(ListItem<BookmarkTreeNode> item) {
                final BookmarkTreeNode node = item.getModelObject();
                final PageParameters pageParameters = node.getPageParameters();
               
                final PageType pageType = PageParameterNames.PAGE_TYPE.getEnumFrom(pageParameters, PageType.class);
                final Class<? extends Page> pageClass = pageClassRegistry.getPageClass(pageType);

                final AjaxLink<Object> clearBookmarkLink = new AjaxLink<Object>(ID_CLEAR_BOOKMARK_LINK) {

                    private static final long serialVersionUID = 1L;
View Full Code Here

TOP

Related Classes of org.apache.isis.viewer.wicket.model.models.PageType

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.