Пример #1
0
  @Perspective
  public PerspectiveDefinition getPerspective() {

    final PerspectiveDefinition p = new PerspectiveDefinitionImpl();
    p.setName("salaboy2");
    p.getRoot().addPart(new PartDefinitionImpl(new DefaultPlaceRequest("MyAdminArea")));

    final PanelDefinition eastPanel = new PanelDefinitionImpl();
    eastPanel.setWidth(300);
    eastPanel.setMinWidth(200);
    eastPanel.setWidth(800);
    eastPanel.addPart(new PartDefinitionImpl(new DefaultPlaceRequest("MyAdminArea2")));

    final PanelDefinition eastPanelSouthPanel = new PanelDefinitionImpl();
    eastPanelSouthPanel.setHeight(400);
    eastPanelSouthPanel.setMinHeight(200);
    eastPanelSouthPanel.setWidth(800);
    eastPanelSouthPanel.addPart(
        new PartDefinitionImpl(new DefaultPlaceRequest("GoogleGadgetScreen")));

    eastPanel.setChild(Position.SOUTH, eastPanelSouthPanel);

    p.getRoot().setChild(Position.EAST, eastPanel);
    return p;
  }
Пример #2
0
  @Perspective
  public PerspectiveDefinition getPerspective() {
    final PerspectiveDefinition definition = new PerspectiveDefinitionImpl();
    definition.setName("home");

    final PanelDefinition west = new PanelDefinitionImpl();
    west.addPart(new PartDefinitionImpl(new DefaultPlaceRequest("perspectives")));
    definition.getRoot().setChild(Position.WEST, west);

    final PanelDefinition east1 = new PanelDefinitionImpl();
    east1.addPart(new PartDefinitionImpl(new DefaultPlaceRequest("notifications")));
    definition.getRoot().setChild(Position.EAST, east1);

    final PanelDefinition east2 = new PanelDefinitionImpl();
    east2.addPart(new PartDefinitionImpl(new DefaultPlaceRequest("rssFeed")));
    east1.setChild(Position.EAST, east2);

    definition.getRoot().addPart(new PartDefinitionImpl(new DefaultPlaceRequest("welcome")));

    return definition;
  }