Package org.rhq.coregui.client

Examples of org.rhq.coregui.client.ViewPath


                        setContent(bundleSectionView);
                    }
                } else {
                    // we are navigating to bundle detail or bundle group detail
                    String currentPath = viewPath.getCurrent().getPath();
                    ViewPath nextViewPath = viewPath.next(); // the ID segment

                    if ("Bundle".equals(currentPath)) {
                        // set new bundle detail if we are changing detail
                        if (!nextViewPath.getCurrent().equals(currentBundleViewId)) {
                            // only  cache the bundle id if bundle detail is the target view
                            currentBundleViewId = nextViewPath.isEnd() ? nextViewPath.getCurrent() : null;
                            bundleView = new BundleView(globalPermissions);
                            bundleGroupView = null;
                            currentBundleGroupViewId = null;
                        }
                        setContent(bundleView);
                        bundleView.renderView(nextViewPath);

                    } else if ("BundleGroup".equals(currentPath)) {
                        // set new bundle detail if we are changing detail
                        if (!nextViewPath.getCurrent().equals(currentBundleGroupViewId)) {
                            // only  cache the bundle id if bundle detail is the target view                           
                            currentBundleGroupViewId = nextViewPath.isEnd() ? nextViewPath.getCurrent() : null;
                            bundleGroupView = new BundleGroupEditView(globalPermissions, Integer.parseInt(nextViewPath
                                .getCurrent().getPath()));
                            bundleView = null;
                            currentBundleViewId = null;
                        }
                        setContent(bundleGroupView);
View Full Code Here


                    if (key.endsWith("deployments")) {
                        theTree.openFolders(theTree.getChildren(node));
                    }
                } else {
                    // wait for data to get loaded...
                    pendingPath = new ViewPath(viewPath.toString());
                    return;
                }
            }

            // we found the node, so keep going
View Full Code Here

TOP

Related Classes of org.rhq.coregui.client.ViewPath

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.