stack.setStyleName("fill-layout-width");
// ----------------------------------------------------
subsysTree = new LHSNavTree("profiles");
DisclosurePanel subsysPanel = new DisclosureStackPanel("Profile").asWidget();
subsysPanel.setContent(subsysTree);
stack.add(subsysPanel);
// ----------------------------------------------------
Tree serverTree = new LHSNavTree("profiles");
serverTree.addItem(new LHSNavTreeItem("JVM Status", NameTokens.VirtualMachine));
serverTree.addItem(new LHSNavTreeItem("Manage Deployments", NameTokens.DeploymentListPresenter));
DisclosurePanel serverPanel = new DisclosureStackPanel("Runtime Status").asWidget();
serverPanel.setContent(serverTree);
stack.add(serverPanel);
// ----------------------------------------------------
Tree commonTree = new LHSNavTree("profiles");
DisclosurePanel commonPanel = new DisclosureStackPanel("General Configuration").asWidget();
commonPanel.setContent(commonTree);
LHSNavTreeItem[] commonItems = new LHSNavTreeItem[] {
/*new LHSNavTreeItem("Server", NameTokens.StandaloneServerPresenter),*/
new LHSNavTreeItem("Interfaces", NameTokens.InterfacePresenter),
new LHSNavTreeItem("Socket Binding Groups", NameTokens.SocketBindingPresenter),
new LHSNavTreeItem("System Properties", NameTokens.PropertiesPresenter)
};
for(LHSNavTreeItem item : commonItems)
{
commonTree.addItem(item);
}
stack.add(commonPanel);
layout.add(stack);