LHSNavTreeItem jvm = new LHSNavTreeItem("JVM Status", NameTokens.HostVMMetricPresenter);
statusTree.addItem(serverInstances);
statusTree.addItem(jvm);
DisclosurePanel statusPanel = new DisclosureStackPanel("Domain Status").asWidget();
statusPanel.setContent(statusTree);
stack.add(statusPanel);
// -------------
metricTree = new LHSNavTree("domain-runtime");
LHSNavTreeItem datasources = new LHSNavTreeItem("Datasources", NameTokens.DataSourceMetricPresenter);
LHSNavTreeItem jmsQueues = new LHSNavTreeItem("JMS Destinations", NameTokens.JmsMetricPresenter);
LHSNavTreeItem web = new LHSNavTreeItem("Web", NameTokens.WebMetricPresenter);
LHSNavTreeItem tx = new LHSNavTreeItem("Transactions", NameTokens.TXMetrics);
LHSNavTreeItem jpa = new LHSNavTreeItem("JPA", NameTokens.JPAMetricPresenter);
metricPredicates.add(new Predicate("datasources", datasources));
metricPredicates.add(new Predicate("messaging", jmsQueues));
metricPredicates.add(new Predicate("web", web));
metricPredicates.add(new Predicate("transactions", tx));
metricPredicates.add(new Predicate("jpa", jpa));
DisclosurePanel metricPanel = new DisclosureStackPanel("Subsystem Metrics").asWidget();
metricPanel.setContent(metricTree);
stack.add(metricPanel);
// ---
runtimeTree = new LHSNavTree("domain-runtime");
LHSNavTreeItem osgi = new LHSNavTreeItem("OSGi", NameTokens.OSGiRuntimePresenter);
runtimePredicates.add(new Predicate("osgi", osgi));
DisclosurePanel runtimeOpPanel = new DisclosureStackPanel("Runtime Operations").asWidget();
runtimeOpPanel.setContent(runtimeTree);
stack.add(runtimeOpPanel);
// ----------------------------------------------------
Tree deploymentTree = new LHSNavTree("domain-runtime");
DisclosurePanel deploymentPanel = new DisclosureStackPanel("Deployments").asWidget();
deploymentPanel.setContent(deploymentTree);
deploymentTree.addItem(new LHSNavTreeItem("Manage Deployments", NameTokens.DeploymentsPresenter));
deploymentTree.addItem(new LHSNavTreeItem("Webservices", NameTokens.WebServiceRuntimePresenter));
stack.add(deploymentPanel);