stack = new VerticalPanel();
stack.setStyleName("fill-layout-width");
// ----------------------------------------------------
subsysTree = new LHSNavTree("standalone-runtime");
// ----------------------------------------------------
LHSNavTree statusTree = new LHSNavTree("standalone-runtime");
LHSNavTreeItem server = new LHSNavTreeItem("Configuration", NameTokens.StandaloneServerPresenter);
LHSNavTreeItem jvmItem = new LHSNavTreeItem("JVM", NameTokens.VirtualMachine);
statusTree.addItem(server);
statusTree.addItem(jvmItem);
DisclosurePanel serverPanel = new DisclosureStackPanel("Server Status", true).asWidget();
serverPanel.setContent(statusTree);
stack.add(serverPanel);
// -------------
metricTree = new LHSNavTree("standalone-runtime");
LHSNavTreeItem datasources = new LHSNavTreeItem("Datasources", "ds-metrics");
LHSNavTreeItem jmsQueues = new LHSNavTreeItem("JMS Destinations", "jms-metrics");
LHSNavTreeItem web = new LHSNavTreeItem("Web", "web-metrics");
LHSNavTreeItem tx = new LHSNavTreeItem("Transactions", "tx-metrics");
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);
// ---
runtimeOpTree = new LHSNavTree("standalone-runtime");
LHSNavTreeItem osgi = new LHSNavTreeItem("OSGi", NameTokens.OSGiRuntimePresenter);
runtimePredicates.add(new Predicate("osgi", osgi));
DisclosurePanel runtimeOpPanel = new DisclosureStackPanel("Runtime Operations").asWidget();
runtimeOpPanel.setContent(runtimeOpTree);
stack.add(runtimeOpPanel);
// ----------------------------------------------------
Tree deploymentTree = new LHSNavTree("standalone-runtime");
DisclosurePanel deploymentPanel = new DisclosureStackPanel("Deployments").asWidget();
deploymentPanel.setContent(deploymentTree);
deploymentTree.addItem(new LHSNavTreeItem("Manage Deployments", NameTokens.DeploymentListPresenter));
deploymentTree.addItem(new LHSNavTreeItem("Webservices", NameTokens.WebServiceRuntimePresenter));
stack.add(deploymentPanel);
// ---