private VerticalSplitPanel createContentPanel() {
   VerticalSplitPanel contentPanel = new VerticalSplitPanel();
   contentPanel.setSplitPosition(60);
   contentPanel.addComponent(mContentView);
   contentPanel.addComponent(mPreviewView);
   //        contentPanel.setMargin(true);
   return contentPanel;
 }
Example #2
0
 @Override
 public Component createContents() {
   VerticalSplitPanel split = new VerticalSplitPanel();
   split.setSizeFull();
   propertyToolArea = createToolArea();
   split.setFirstComponent(createMainArea());
   split.setSecondComponent(propertyToolArea);
   split.setSplitPosition(70);
   return split;
 }
Example #3
0
  /** {@inheritDoc} */
  @Override
  public ComponentContainer getContentContainer() {
    HorizontalLayout horLayout = new HorizontalLayout();
    horLayout.setSizeFull();

    VerticalSplitPanel verSidebar = new VerticalSplitPanel();
    verSidebar.setWidth("300px");
    verSidebar.setHeight("100%");
    verSidebar.setSplitPosition(150, UNITS_PIXELS, true);
    verSidebar.setLocked(true);
    tree = new EventTree(this);
    verSidebar.addComponent(tree);
    verSidebar.addComponent(new GlobalLayout());
    horLayout.addComponent(verSidebar);

    VerticalLayout verContent = new VerticalLayout();
    verContent.setSizeFull();
    horLayout.addComponent(verContent);
    horLayout.setExpandRatio(verContent, 1.0f);

    toolbar = new ToolBar(this);
    verContent.addComponent(toolbar);

    content = new Panel();
    content.setSizeFull();
    verContent.addComponent(content);
    verContent.setExpandRatio(content, 1.0f);

    // Make useless
    setEnabled(false);
    VerticalLayout verWarning = new VerticalLayout();
    verWarning.setSizeFull();
    content.setContent(verWarning);
    Label lblWarning = new Label("Diese Funktionalität steht z.Z. nicht zur Verfügung!");
    lblWarning.setStyleName(Reindeer.LABEL_H1);
    lblWarning.setSizeUndefined();
    verWarning.addComponent(lblWarning);
    verWarning.setComponentAlignment(lblWarning, Alignment.MIDDLE_CENTER);

    return horLayout;
  }