innerlayout.setStyleName("fill-layout-width");
serverPicker = new ServerPicker();
innerlayout.add(serverPicker.asWidget());
Tree statusTree = new LHSNavTree("domain-runtime");
TreeItem servers = new DefaultTreeItem("Domain Status");
statusTree.addItem(servers);
LHSNavTreeItem serverInstances= new LHSNavTreeItem(Console.CONSTANTS.common_label_serverInstances(), new ClickHandler()
{
@Override
public void onClick(ClickEvent event) {
Console.MODULES.getPlaceManager().revealPlace(
new PlaceRequest(NameTokens.InstancesPresenter)
);
}
});
LHSNavTreeItem jvm = new LHSNavTreeItem("JVM Status", NameTokens.HostVMMetricPresenter);
servers.addItem(serverInstances);
servers.addItem(jvm);
innerlayout.add(statusTree);
// -------------
Tree metricTree = new LHSNavTree("domain-runtime");
TreeItem subsystems = new DefaultTreeItem("Subsystem 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", "tx-metrics");
subsystems.addItem(datasources);
subsystems.addItem(jmsQueues);
subsystems.addItem(web);
subsystems.addItem(tx);
metricTree.addItem(subsystems);
subsystems.setState(true); // open by default
servers.setState(true);
innerlayout.add(metricTree);
DisclosurePanel statusPanel = new DisclosureStackPanel("Status", true).asWidget();
statusPanel.setContent(innerlayout);
stack.add(statusPanel);
// ----------------------------------------------------
Tree deploymentTree = new LHSNavTree("domain-runtime");
DisclosurePanel deploymentPanel = new DisclosureStackPanel("Deployments").asWidget();
deploymentPanel.setContent(deploymentTree);
deploymentTree.addItem(new LHSNavTreeItem("Manage Deployments", NameTokens.DeploymentsPresenter));
stack.add(deploymentPanel);
layout.add(stack);