Package org.jboss.on.embedded.ui

Examples of org.jboss.on.embedded.ui.NavigationAction


        }.run();
    }

    public void getOutcomeForNode(JONTreeNode node, int level)
    {
        NavigationAction navAction = getNavigationAction();
        navAction.setCurrentPath(node.getPath());

        SummaryAction action = new SummaryAction();
        action.setNavigationAction(navAction);

        String outcome = action.view();
View Full Code Here


        }.run();
    }

    public void getBreadcrumbForNode(JONTreeNode node, int level)
    {
        NavigationAction navAction = getNavigationAction();
        navAction.setCurrentPath(node.getPath());
        List breadcrumbs = navAction.getBreadCrumbs();

        assert breadcrumbs != null;
        assert !breadcrumbs.isEmpty();
    }
View Full Code Here

        }.run();
    }

    public void findNode(JONTreeNode node, int level)
    {
        NavigationAction navAction = getNavigationAction();
        JONTreeNode retrievedNode = navAction.findNode(node.getPath());

        assert retrievedNode != null;
        assert retrievedNode.getName().equals(node.getName());
        assert retrievedNode.getPath().equals(node.getPath());
    }
View Full Code Here

            protected void testComponents() throws Exception
            {
                ResourceType localDS = getManager().getResourceType(ResourceTypes.RESOURCE_TYPE_LOCAL_DATASOURCE);
                assert localDS != null;

                NavigationAction navAction = getNavigationAction();
                ResourceTypeTreeNode retrievedNode = navAction.findNodeByResourceTypeAndParent(localDS, getPlatformNode());

                assert retrievedNode != null;
                assert localDS.equals(retrievedNode.getResourceType());
                assert retrievedNode.getChildNodes().size() == 6;
            }
View Full Code Here

        return (NavigationAction)Component.getInstance("navigationAction", true);
    }

    private JONTreeNode getPlatformNode()
    {
        NavigationAction navAction = getNavigationAction();
        navAction.setCurrentPath("bad_path");
        // if the path doesn't match anything the root node is returned
        JONTreeNode root = navAction.getSelectedNode();

        return root;
    }
View Full Code Here

TOP

Related Classes of org.jboss.on.embedded.ui.NavigationAction

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.