stack.setStyleName("fill-layout-width");
// ----------------------------------------------------
subsysTree = new LHSNavTree("standalone-runtime");
// ----------------------------------------------------
statusTree = new LHSNavTree("standalone-runtime");
TreeItem serverContents = new DefaultTreeItem("Server");
statusTree.addItem(serverContents);
LHSNavTreeItem server = new LHSNavTreeItem("Configuration", NameTokens.StandaloneServerPresenter);
LHSNavTreeItem jvmItem = new LHSNavTreeItem("JVM", NameTokens.VirtualMachine);
serverContents.addItem(server);
serverContents.addItem(jvmItem);
//LHSNavTreeItem metrics = new LHSNavTreeItem("Subsystem Metrics", "metrics");
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", NameTokens.TXMetrics);
/*subsysContents.addItem(datasources);
subsysContents.addItem(jmsQueues);
subsysContents.addItem(web);
subsysContents.addItem(tx);*/
mapping.put(NameTokens.DataSourcePresenter, datasources);
mapping.put(NameTokens.MessagingPresenter, jmsQueues);
mapping.put(NameTokens.WebPresenter, web);
mapping.put(NameTokens.TransactionPresenter, tx);
DisclosurePanel serverPanel = new DisclosureStackPanel("Status", true).asWidget();
serverPanel.setContent(statusTree);
// open by default
serverContents.setState(true);
stack.add(serverPanel);
// ----------------------------------------------------
Tree deploymentTree = new LHSNavTree("standalone-runtime");
DisclosurePanel deploymentPanel = new DisclosureStackPanel("Deployments").asWidget();
deploymentPanel.setContent(deploymentTree);
deploymentTree.addItem(new LHSNavTreeItem("Manage Deployments", NameTokens.DeploymentListPresenter));
stack.add(deploymentPanel);
// ----
Tree runtimeOpsTree = new LHSNavTree("standalone-runtime");
DisclosurePanel runtimePanel = new DisclosureStackPanel("Runtime Operations").asWidget();
runtimePanel.setContent(runtimeOpsTree);
LHSNavTreeItem osgi = new LHSNavTreeItem("OSGi", NameTokens.OSGiRuntimePresenter);
runtimeOpsTree.addItem(osgi);
stack.add(runtimePanel);
// ---