Esempio n. 1
0
  @AutoGenerated
  private HorizontalLayout buildWorkAreaLayout() {
    // common part: create layout
    workAreaLayout = new HorizontalLayout();
    workAreaLayout.setImmediate(false);
    workAreaLayout.setWidth("100.0%");
    workAreaLayout.setHeight("100.0%");
    workAreaLayout.setMargin(false);

    // availableModulesComponent
    availableModulesComponent = new AvailableModulesComponent();
    availableModulesComponent.setImmediate(false);
    availableModulesComponent.setWidth("-1px");
    availableModulesComponent.setHeight("100.0%");
    workAreaLayout.addComponent(availableModulesComponent);

    // configuratedModulesComponent
    configuratedModulesComponent = new ConfiguratedModulesComponent();
    configuratedModulesComponent.setImmediate(false);
    configuratedModulesComponent.setWidth("100.0%");
    configuratedModulesComponent.setHeight("100.0%");
    workAreaLayout.addComponent(configuratedModulesComponent);
    workAreaLayout.setExpandRatio(configuratedModulesComponent, 1.0f);

    return workAreaLayout;
  }
Esempio n. 2
0
 private void initView() {
   try {
     availableModulesComponent.loadData(menuCommandResourceService, moduleService);
     configuratedModulesComponent.loadData(
         menuWorkbenchService,
         moduleService,
         menuFolderResourceService,
         menuCommandResourceService);
   } catch (Exception e) {
     // TODO Auto-generated catch block
     e.printStackTrace();
   }
 }