public LHSServerGroupNavigation() {

    layout = new LayoutPanel();
    layout.setStyleName("fill-layout");

    stack = new VerticalPanel();
    stack.setStyleName("fill-layout-width");

    serverGroupSection = new ServerGroupSection();
    stack.add(serverGroupSection.asWidget());

    DeploymentSection deploymentSection = new DeploymentSection();
    stack.add(deploymentSection.asWidget());

    layout.add(stack);
  }
Exemplo n.º 2
0
  public DeploymentSection() {

    layout = new LayoutPanel();
    layout.setStyleName("stack-section");

    LHSNavItem current =
        new LHSNavItem(
            "Available Deployments",
            NameTokens.DeploymentsPresenter,
            Icons.INSTANCE.inventory_small());

    LHSNavItem createNew =
        new LHSNavItem(
            "Add Deployment", "current-deployments;action=new", Icons.INSTANCE.add_small());

    LHSNavItem plans = new LHSNavItem("Deployment Plans", "deployment-plans");

    addNavItems(createNew, current, plans);
  }