public Layout getWebFoot() {
    VerticalLayout foot = new VerticalLayout();
    foot.addStyleName("mocha-app-foot");
    foot.setWidth("100%");
    foot.setHeight("80px");

    VerticalLayout footContent = new VerticalLayout();
    footContent.addStyleName("copy-right");
    footContent.setWidth(pageWidth);
    Label copyrightLabel = new Label("© Mocha business software platform. All rights reserved.");
    footContent.addComponent(copyrightLabel);

    foot.addComponent(footContent);
    foot.setComponentAlignment(footContent, Alignment.TOP_CENTER);
    return foot;
  }
  @AutoGenerated
  private VerticalLayout buildVerticalLayout_2() {
    // common part: create layout
    verticalLayout_2 = new VerticalLayout();
    verticalLayout_2.setImmediate(false);
    verticalLayout_2.setWidth("259px");
    verticalLayout_2.setHeight("-1px");
    verticalLayout_2.setMargin(false);

    // loginLabel
    loginLabel = new Label();
    loginLabel.setImmediate(false);
    loginLabel.setWidth("200px");
    loginLabel.setHeight("-1px");
    loginLabel.setValue("Welcome to AppSyc!");
    verticalLayout_2.addComponent(loginLabel);
    verticalLayout_2.setComponentAlignment(loginLabel, new Alignment(20));

    // loginForm_2
    loginForm_2 = new LoginForm();
    loginForm_2.setStyleName("v-loginform");
    loginForm_2.setImmediate(false);
    loginForm_2.setWidth("90.72%");
    loginForm_2.setHeight("-1px");
    verticalLayout_2.addComponent(loginForm_2);
    verticalLayout_2.setComponentAlignment(loginForm_2, new Alignment(48));

    return verticalLayout_2;
  }
  public VerticalTabsheet(boolean isLeft) {
    CssLayout contentLayout = new CssLayout();
    new Restrain(contentLayout).setMinHeight("100%");

    navigatorWrapper = new CssLayout();
    navigatorWrapper.setStyleName("navigator-wrap");
    navigatorContainer = new VerticalLayout();
    navigatorWrapper.addComponent(navigatorContainer);

    contentWrapper = new VerticalLayout();
    contentWrapper.setStyleName("container-wrap");
    contentWrapper.setWidth("100%");

    tabContainer = new CssLayout();
    tabContainer.setWidth("100%");
    contentWrapper.addComponent(tabContainer);

    if (isLeft) {
      contentLayout.addComponent(navigatorWrapper);
      contentLayout.addComponent(contentWrapper);

    } else {
      contentLayout.addComponent(contentWrapper);
      contentLayout.addComponent(navigatorWrapper);
    }

    this.setCompositionRoot(contentLayout);
    this.setStyleName(TABSHEET_STYLENAME);
  }
Exemple #4
0
  public void initializeAddBtnPanel() {
    btnAdd = initSizeButton(btnAdd, "Agregar", ">", null);
    btnAddAll = initSizeButton(btnAddAll, "Agregar Todos", ">>", null);
    btnRemove = initSizeButton(btnRemove, "Quitar", "<", null);
    btnRemoveAll = initSizeButton(btnRemoveAll, "Quitar Todos", "<<", null);

    panelAddButton = new VerticalLayout();
    panelAddButton.setMargin(false);
    panelAddButton.setHeight("100%");
    panelAddButton.setWidth("100%");

    GridLayout grid = new GridLayout(1, 4);
    grid.setWidth("90%");
    grid.setHeight("50%");

    grid.addComponent(btnAddAll, 0, 0);
    grid.setComponentAlignment(btnAddAll, Alignment.MIDDLE_CENTER);
    grid.addComponent(btnRemoveAll, 0, 3);
    grid.setComponentAlignment(btnRemoveAll, Alignment.MIDDLE_CENTER);
    panelAddButton.addComponent(grid);
    panelAddButton.setComponentAlignment(grid, Alignment.MIDDLE_CENTER);

    mainPanel.addComponent(panelAddButton);
    mainPanel.setExpandRatio(panelAddButton, new Float(0.10));
  }
  @AutoGenerated
  private VerticalLayout buildVerticalLayout_2() {
    // common part: create layout
    verticalLayout_2 = new VerticalLayout();
    verticalLayout_2.setImmediate(false);
    verticalLayout_2.setWidth("-1px");
    verticalLayout_2.setHeight("-1px");
    verticalLayout_2.setMargin(false);

    // label_1
    label_1 = new Label();
    label_1.setStyleName("h1");
    label_1.setImmediate(false);
    label_1.setWidth("-1px");
    label_1.setHeight("-1px");
    label_1.setValue("Filtro de Busqueda de Usuarios");
    verticalLayout_2.addComponent(label_1);

    // horizontalLayout_3
    horizontalLayout_3 = buildHorizontalLayout_3();
    verticalLayout_2.addComponent(horizontalLayout_3);

    // tblUsuarios
    tblUsuarios = new Table();
    tblUsuarios.setImmediate(false);
    tblUsuarios.setWidth("650px");
    tblUsuarios.setHeight("430px");
    verticalLayout_2.addComponent(tblUsuarios);

    return verticalLayout_2;
  }
  public ServerDesc() {
    setWidth("100%");
    setHeight("100%");
    setCaption(ViewProperties.getCaption("panel.serverDesc"));
    addStyleName(Reindeer.PANEL_LIGHT);
    addStyleName("server-desc-panel");

    VerticalLayout layout = (VerticalLayout) getContent();
    layout.setWidth("100%");
    layout.setHeight("100%");
    layout.setMargin(false);
    layout.setSpacing(false);
    layout.addStyleName("server-desc-layout");
    tabDesc.addStyleName(Reindeer.TABSHEET_BORDERLESS);
    tabDesc.setWidth("100%");
    tabDesc.setHeight("100%");
    tabDesc.addTab(
        serverDescBasic, ViewProperties.getCaption("tab.serverDescBasic"), Icons.BASIC.resource());
    tabDesc.addTab(
        serverDescDetail,
        ViewProperties.getCaption("tab.serverDescDetail"),
        Icons.DETAIL.resource());
    // タブ用リスナー
    tabDesc.addListener(TabSheet.SelectedTabChangeEvent.class, this, "selectedTabChange");
    addComponent(tabDesc);
  }
  @AutoGenerated
  private VerticalLayout buildVerLCaracteristicas() {
    // common part: create layout
    verLCaracteristicas = new VerticalLayout();
    verLCaracteristicas.setImmediate(false);
    verLCaracteristicas.setWidth("100.0%");
    verLCaracteristicas.setHeight("-1px");
    verLCaracteristicas.setMargin(false);

    // absLCaracteristicas1
    absLCaracteristicas1 = buildAbsLCaracteristicas1();
    verLCaracteristicas.addComponent(absLCaracteristicas1);

    // absLCaracteristicas2
    absLCaracteristicas2 = buildAbsLCaracteristicas2();
    verLCaracteristicas.addComponent(absLCaracteristicas2);

    // absLCaracteristicas3
    absLCaracteristicas3 = buildAbsLCaracteristicas3();
    verLCaracteristicas.addComponent(absLCaracteristicas3);

    // absLCaracteristicas4
    absLCaracteristicas4 = buildAbsLCaracteristicas4();
    verLCaracteristicas.addComponent(absLCaracteristicas4);

    // absLCaracteristicas5
    absLCaracteristicas5 = buildAbsLCaracteristicas5();
    verLCaracteristicas.addComponent(absLCaracteristicas5);

    return verLCaracteristicas;
  }
  @AutoGenerated
  private VerticalLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new VerticalLayout();
    mainLayout.setImmediate(false);
    mainLayout.setWidth("-1px");
    mainLayout.setHeight("-1px");
    mainLayout.setMargin(true);
    mainLayout.setSpacing(true);

    // top-level component properties
    setWidth("-1px");
    setHeight("-1px");

    // headLayout
    headLayout = buildHeadLayout();
    mainLayout.addComponent(headLayout);
    mainLayout.setComponentAlignment(headLayout, new Alignment(20));

    // semanticComposite
    semanticComposite = new SemanticComposite();
    semanticComposite.setImmediate(false);
    semanticComposite.setWidth("-1px");
    semanticComposite.setHeight("-1px");
    mainLayout.addComponent(semanticComposite);
    mainLayout.setComponentAlignment(semanticComposite, new Alignment(24));

    return mainLayout;
  }
  private void initLayout() {
    horizontalLayout = new HorizontalLayout();

    uriFragmentUtility.addListener(
        new FragmentChangedListener() {
          @Override
          public void fragmentChanged(FragmentChangedEvent source) {
            String fragment = uriFragmentUtility.getFragment();
            if (!uriCallbacks.isEmpty() && Strings.hasText(fragment)) {
              for (UriChangedCallback callback : uriCallbacks) {
                callback.handle(fragment);
              }
            }
          }
        });

    activityQueuesPane = new ActivityQueuesPane(this);
    initViewController();
    activityQueuesPane.refreshData();
    viewController.displayCurrentView();

    removeAllComponents();

    showHideButton0 = new Button();
    showHideButton0.setStyleName(BaseTheme.BUTTON_LINK);
    showHideButton0.setIcon(resourceCache.getImage("/img/guzik_1.png"));
    showHideButton0.setSizeFull();

    showHideButton1 = new Button();
    showHideButton1.setStyleName(BaseTheme.BUTTON_LINK);
    showHideButton1.setIcon(resourceCache.getImage("/img/guzik_2.png"));

    showHideButton2 = new Button();
    showHideButton2.setStyleName(BaseTheme.BUTTON_LINK);
    showHideButton2.setIcon(resourceCache.getImage("/img/guzik_2.png"));
    final VerticalLayout leftPanel =
        verticalLayout(
            showHideButton1,
            new NewProcessExtendedPane(bpmSession, i18NSource, this),
            activityQueuesPane,
            new ActivityFiltersPane(this),
            showHideButton2);

    leftPanelTrigger = new LeftPanelVisibilityTrigger(leftPanel, true);
    leftPanel.setWidth(300, Sizeable.UNITS_PIXELS);
    showHideButton0.addListener(leftPanelTrigger);
    showHideButton1.addListener(leftPanelTrigger);
    showHideButton2.addListener(leftPanelTrigger);

    ComponentContainer viewContainer = viewController.getViewContainer();

    horizontalLayout.setWidth(100, Sizeable.UNITS_PERCENTAGE);
    horizontalLayout.addComponent(leftPanel);
    horizontalLayout.addComponent(viewContainer);
    horizontalLayout.setExpandRatio(viewContainer, 1.0f);
    addComponent(showHideButton0);
    addComponent(horizontalLayout);
    addComponent(uriFragmentUtility);
  }
 public void setNavigatorWidth(String width) {
   navigatorContainer.setWidth(width);
   Iterator<Component> i = navigatorContainer.iterator();
   while (i.hasNext()) {
     Component childComponent = i.next();
     childComponent.setWidth(width);
   }
 }
  public WindowTimtheobomon() {

    setCaption("Tìm theo bộ môn "); // Constants.USER_CAPTION) ;

    HorizontalLayout mainLayout = new HorizontalLayout();
    mainLayout.setImmediate(false);
    mainLayout.setWidth(Constants.WIDTH_MAX, Sizeable.UNITS_PIXELS);
    mainLayout.setMargin(false);
    mainLayout.setSpacing(true);

    mainLayout.addComponent(new leftSide());
    rContent = new VerticalLayout();
    rContent.setWidth("100%");

    mainLayout.addComponent(rContent);
    mainLayout.setExpandRatio(rContent, 1.0f);

    VerticalLayout v = new VerticalLayout();
    v.setWidth("100%");
    v.setStyleName("bl-mainContent");
    v.addComponent(mainLayout);
    v.setComponentAlignment(mainLayout, Alignment.MIDDLE_CENTER);

    addComponent(new topLogin());
    addComponent(new topPanel());
    addComponent(new mainMenu());
    addComponent(v);
    addComponent(new bottom());

    // --------------------bl
    Label title = new Label("<center><h1>Tìm theo bộ môn<h1></center>", Label.CONTENT_XHTML);

    final BeanItemContainer<ResearchingBean> beans =
        new BeanItemContainer<ResearchingBean>(ResearchingBean.class);

    Table table = new Table("Tìm kiếm", beans);

    table.setWidth("100%");
    table.setPageLength(10);

    rContent.addComponent(title);
    rContent.addComponent(table);
  }
    public void show() {
      /* Fix for tab sheet - without those line, it doesn't expand */
      leftPanel.setWidth(300, Sizeable.UNITS_PIXELS);

      leftPanel.setVisible(true);
      leftPanelVisible = true;
      showHideButton0.setVisible(false);

      horizontalLayout.setSizeFull();
      horizontalLayout.requestRepaintAll();
    }
  /** Left area of index page for user photo and menu. */
  public VerticalLayout buildInformationColumn() {
    infoColumn.addStyleName("index-info-panel");
    infoColumn.setWidth(infoWidth);
    UserPhotoWidget userPhoto = new UserPhotoWidget(user);
    infoColumn.addComponent(userPhoto);

    ShotcutPanel menu = new ShotcutPanel(eventBus, ExampleData.getCustomerShotcut());
    menu.setWidth(infoWidth);

    infoColumn.addComponent(menu);
    return infoColumn;
  }
  public DetailEditPanel2(NApplication app, Detail d) {
    super();
    this.detail = d;
    this.app = app;

    text = new RichTextArea();
    text.setWidth("100%");
    addComponent(text);

    patternBar = new GridLayout();
    patternBar.setWidth("100%");

    refreshPatternBar();
    refreshProperties();

    addComponent(patternBar);

    patternList.setWidth("100%");
    patternList.setHeight("100%");
    addComponent(patternList);

    HorizontalLayout bottomPanel = new HorizontalLayout();
    {
      Button cancelButton = new Button("Cancel");
      cancelButton.addListener(
          new ClickListener() {

            @Override
            public void buttonClick(ClickEvent event) {
              cancel();
            }
          });
      bottomPanel.addComponent(cancelButton);

      Button saveButton = new Button("Save");
      saveButton.addListener(
          new ClickListener() {

            @Override
            public void buttonClick(ClickEvent event) {
              controlsToObject();
              save();
            }
          });
      bottomPanel.addComponent(saveButton);
    }
    bottomPanel.setMargin(true);
    addComponent(bottomPanel);
    setComponentAlignment(bottomPanel, Alignment.TOP_RIGHT);
  }
Exemple #15
0
  public EditorView(ProjectFile file, Project project, User user, boolean inIde, int line) {
    super();
    this.file = file;
    this.project = project;
    this.user = user;
    layout.setSizeFull();

    HorizontalLayout ho = new HorizontalLayout();
    if (!inIde) {
      String url = "#" + project.getName() + "/" + file.getName() + "!";
      Link link = new Link("<<< " + file.getName(), new ExternalResource(url));
      link.setDescription("View project");
      layout.addComponent(link);
    }
    if (inIde) {
      String url = "#" + project.getName() + "/" + file.getName();
      Link link = new Link(file.getName() + " >>>", new ExternalResource(url));
      link.setDescription("View in standalone window");
      layout.addComponent(link);
    }

    layout.addComponent(ho);

    layout.setExpandRatio(ho, 1);
    ho.setSizeFull();

    cdoc = project.getDoc(file);

    editor = createEditor(file, project);
    editor.setSizeFull();
    editor.setEnabled(user != null);
    editor.setUser(user.getUserId(), user.getStyle());

    final int pos =
        org.vaadin.aceeditor.gwt.shared.Util.cursorPosFromLineCol(
            cdoc.getShared().getValue().getText(), line, 0, 1);
    editor.scrollToPosition(pos);
    ho.addComponent(editor);
    ho.setExpandRatio(editor, 1);

    VerticalLayout rightBar = new VerticalLayout();
    rightBar.setWidth("64px");
    rightBar.addComponent(userLayout);
    rightBar.addComponent(markerLayout);

    ho.addComponent(rightBar);

    setSizeFull();
    setCompositionRoot(layout);
  }
 @Override
 public AbstractLayout getLoginForm() {
   if (loginForm == null) {
     Image im =
         new Image(
             null,
             new ExternalResource(
                 "https://b2access.eudat.eu:8443/home/VAADIN/themes/common/img/logo.png"));
     im.setWidth("300px");
     loginForm = new VerticalLayout(im);
     loginForm.setWidth("300px");
   }
   return loginForm;
 }
  protected void init() {
    addStyleName(Reindeer.LAYOUT_WHITE);
    setSizeFull();

    panelLayout = new VerticalLayout();
    panelLayout.setWidth(100, UNITS_PERCENTAGE);
    panelLayout.setMargin(true);
    setDetailContainer(panelLayout);

    addHeader();
    addProcessImage();
    addTasks();
    addVariables();
    addDeleteButton();
  }
  @Override
  protected Component generateTopControls() {
    VerticalLayout controlsBtnWrap = new VerticalLayout();
    controlsBtnWrap.setWidth("100%");
    final SplitButton controlsBtn = new SplitButton();
    controlsBtn.addStyleName(UIConstants.THEME_GREEN_LINK);
    controlsBtn.setCaption(AppContext.getMessage(OpportunityI18nEnum.BUTTON_NEW_OPPORTUNITY));
    controlsBtn.setIcon(FontAwesome.PLUS);
    controlsBtn.addClickListener(
        new SplitButton.SplitButtonClickListener() {
          private static final long serialVersionUID = 1L;

          @Override
          public void splitButtonClick(SplitButton.SplitButtonClickEvent event) {
            fireNewRelatedItem("");
          }
        });
    controlsBtn.setSizeUndefined();
    Button selectBtn =
        new Button(
            "Select from existing opportunities",
            new Button.ClickListener() {
              private static final long serialVersionUID = 1L;

              @Override
              public void buttonClick(Button.ClickEvent event) {
                ContactOpportunitySelectionWindow opportunitiesWindow =
                    new ContactOpportunitySelectionWindow(ContactOpportunityListComp.this);
                OpportunitySearchCriteria criteria = new OpportunitySearchCriteria();
                criteria.setSaccountid(new NumberSearchField(AppContext.getAccountId()));
                UI.getCurrent().addWindow(opportunitiesWindow);
                opportunitiesWindow.setSearchCriteria(criteria);
                controlsBtn.setPopupVisible(false);
              }
            });
    selectBtn.setIcon(CrmAssetsManager.getAsset(CrmTypeConstants.OPPORTUNITY));
    OptionPopupContent buttonControlsLayout = new OptionPopupContent();
    buttonControlsLayout.addOption(selectBtn);
    controlsBtn.setContent(buttonControlsLayout);

    controlsBtn.setEnabled(AppContext.canWrite(RolePermissionCollections.CRM_OPPORTUNITY));

    controlsBtnWrap.addComponent(controlsBtn);
    controlsBtnWrap.setComponentAlignment(controlsBtn, Alignment.MIDDLE_RIGHT);
    return controlsBtnWrap;
  }
Exemple #19
0
 @Override
 protected void setup(VaadinRequest request) {
   Panel panel = new Panel();
   panel.setId("mainPanel");
   panel.setWidth("200px");
   panel.setHeight("200px");
   VerticalLayout layout = new VerticalLayout();
   layout.setWidth("500px");
   layout.setHeight("500px");
   Button btn = new Button("Button 1");
   Button btn2 = new Button("Button 2");
   layout.addComponent(btn);
   layout.setComponentAlignment(btn, Alignment.TOP_RIGHT);
   layout.addComponent(btn2);
   layout.setComponentAlignment(btn2, Alignment.BOTTOM_LEFT);
   panel.setContent(layout);
   addComponent(panel);
 }
  @AutoGenerated
  private VerticalLayout buildRolLayout() {
    // common part: create layout
    rolLayout = new VerticalLayout();
    rolLayout.setImmediate(false);
    rolLayout.setWidth("100.0%");
    rolLayout.setHeight("100.0%");
    rolLayout.setMargin(false);

    // userRoleCollectionField
    userRoleCollectionField = new UserRoleCollectionField();
    userRoleCollectionField.setImmediate(false);
    userRoleCollectionField.setWidth("100.0%");
    userRoleCollectionField.setHeight("100.0%");
    rolLayout.addComponent(userRoleCollectionField);
    rolLayout.setExpandRatio(userRoleCollectionField, 1.0f);

    return rolLayout;
  }
  @AutoGenerated
  private VerticalLayout buildVerticalLayout_1() {
    // common part: create layout
    verticalLayout_1 = new VerticalLayout();
    verticalLayout_1.setImmediate(false);
    verticalLayout_1.setWidth("100.0%");
    verticalLayout_1.setHeight("100.0%");
    verticalLayout_1.setMargin(false);

    // gameResultTable
    gameResultTable = new Table();
    gameResultTable.setImmediate(false);
    gameResultTable.setWidth("100.0%");
    gameResultTable.setHeight("100.0%");
    verticalLayout_1.addComponent(gameResultTable);
    verticalLayout_1.setExpandRatio(gameResultTable, 1.0f);

    return verticalLayout_1;
  }
  @AutoGenerated
  private VerticalLayout buildAddressLayout() {
    // common part: create layout
    addressLayout = new VerticalLayout();
    addressLayout.setImmediate(false);
    addressLayout.setWidth("100.0%");
    addressLayout.setHeight("100.0%");
    addressLayout.setMargin(false);

    // clientAddressField
    addressField = new AddressField();
    addressField.setImmediate(false);
    addressField.setWidth("100.0%");
    addressField.setHeight("100.0%");
    addressLayout.addComponent(addressField);
    addressLayout.setExpandRatio(addressField, 1.0f);

    return addressLayout;
  }
  @AutoGenerated
  private VerticalLayout buildVerLAvanceTabla() {
    // common part: create layout
    verLAvanceTabla = new VerticalLayout();
    verLAvanceTabla.setImmediate(false);
    verLAvanceTabla.setWidth("440px");
    verLAvanceTabla.setHeight("-1px");
    verLAvanceTabla.setMargin(false);

    // absLAvance
    absLAvance = buildAbsLAvance();
    verLAvanceTabla.addComponent(absLAvance);

    // absLTabla
    absLTabla = buildAbsLTabla();
    verLAvanceTabla.addComponent(absLTabla);

    return verLAvanceTabla;
  }
Exemple #24
0
  @Override
  public void init() {
    LegacyWindow main = new LegacyWindow("Testing....");
    setMainWindow(main);

    final VerticalLayout lo = new VerticalLayout();
    lo.setSizeUndefined();
    lo.setWidth("100%");
    TextArea tf = new TextArea();
    tf.setValue(
        "The textfield should fill the window."
            + "\n - Try to resize window\n - Try to push REdo button");
    tf.setRows(10);
    tf.setWidth("100%");
    lo.addComponent(tf);
    Window subWin = new Window("This window should initially be as wide as the caption", lo);
    main.addWindow(subWin);
    // subWin.setWidth("500px");
  }
  @AutoGenerated
  private VerticalLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new VerticalLayout();
    mainLayout.setImmediate(false);
    mainLayout.setWidth("100%");
    mainLayout.setHeight("100%");
    mainLayout.setMargin(false);

    // top-level component properties
    setWidth("100.0%");
    setHeight("100.0%");

    // pnlPrincipal
    pnlPrincipal = buildPnlPrincipal();
    mainLayout.addComponent(pnlPrincipal);

    return mainLayout;
  }
Exemple #26
0
  public void initializePanelLeft() {
    txtSearch = new TextField();
    txtSearch.setWidth("100%");
    txtSearch.setHeight("100%");

    txtSearch.addListener(
        new TextChangeListener() {
          private static final long serialVersionUID = 1L;

          public void textChange(TextChangeEvent event) {
            String filter = event.getText();
            search(filter);
          }
        });

    btnSearch.setStyleName("searchButton");
    btnSearch.setDescription("Buscar");

    HorizontalLayout pnlSearch = new HorizontalLayout();
    pnlSearch.setWidth("100%");
    pnlSearch.setHeight("100%");
    pnlSearch.setMargin(false);
    pnlSearch.addComponent(txtSearch);
    pnlSearch.addComponent(btnSearch);

    lstStudents = new ListSelect("Alumnos Disponibles");
    lstStudents.setSizeFull();
    lstStudents.setMultiSelect(true);

    // panel left
    VerticalLayout pnlLeft = new VerticalLayout();
    pnlLeft.setHeight("100%");
    pnlLeft.setWidth("100%");
    pnlLeft.addComponent(pnlSearch);
    pnlLeft.addComponent(lstStudents);
    pnlLeft.setMargin(false);
    pnlLeft.setExpandRatio(pnlSearch, new Float(0.08));
    pnlLeft.setExpandRatio(lstStudents, new Float(0.92));

    mainPanel.addComponent(pnlLeft);
    mainPanel.setExpandRatio(pnlLeft, new Float(0.45));
  }
  public ServerDescBasic() {
    setHeight("100%");
    addStyleName(Reindeer.PANEL_LIGHT);

    VerticalLayout panel = (VerticalLayout) getContent();
    panel.setWidth("100%");
    panel.setHeight("100%");
    panel.setMargin(true);
    panel.setSpacing(false);
    panel.addStyleName("server-desc-basic");

    HorizontalLayout hlPanels = new HorizontalLayout();
    hlPanels.setWidth("100%");
    hlPanels.setHeight("100%");
    hlPanels.setMargin(true);
    hlPanels.setSpacing(true);
    hlPanels.addStyleName("server-desc-basic");
    //        setContent(hlPanels);

    left.setWidth("100%");
    right.setHeight("100%");
    right.setWidth("100%");

    // 表同士の間隔をあける
    Label padding = new Label(" ");
    padding.setWidth("7px");
    padding.setHeight("99%");
    padding.addStyleName("desc-padding");

    Label padding2 = new Label("");
    padding2.setWidth("1px");

    hlPanels.addComponent(left);
    hlPanels.addComponent(padding);
    hlPanels.addComponent(padding2);
    hlPanels.addComponent(right);
    hlPanels.setExpandRatio(left, 40);
    hlPanels.setExpandRatio(right, 60);

    panel.addComponent(hlPanels);
    panel.setExpandRatio(hlPanels, 1.0f);
  }
  @AutoGenerated
  private VerticalLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new VerticalLayout();
    mainLayout.setImmediate(false);
    mainLayout.setWidth("100%");
    mainLayout.setHeight("100%");
    mainLayout.setMargin(false);

    // top-level component properties
    setWidth("100.0%");
    setHeight("100.0%");

    // workAreaLayout
    workAreaLayout = buildWorkAreaLayout();
    mainLayout.addComponent(workAreaLayout);
    mainLayout.setExpandRatio(workAreaLayout, 1.0f);

    return mainLayout;
  }
  private VerticalLayout buildAppointmentPStructure() {

    appointmentPhoneScreen = new VerticalLayout();
    appointmentPhoneScreen.setWidth("420px");
    appointmentPhoneScreen.setHeight("250px");

    phoneLayout = new VerticalLayout();
    phoneLayout.setSpacing(true);
    phoneLayout.setSizeFull();

    Panel panel = new Panel("Arzt anrufen");
    panel.setWidth("420px");
    panel.addComponent(phoneLayout);

    phoneLayout.addComponent(contactList);

    appointmentPhoneScreen.addComponent(panel);

    return appointmentPhoneScreen;
  }
Exemple #30
0
 public Layout getSearchIcon() {
   VerticalLayout iconLayout = new VerticalLayout();
   iconLayout.setWidth("80px");
   iconLayout.addStyleName("card-icon");
   Label icon = new Label();
   icon.setWidth("50px");
   if (getIconName() == null) {
     icon.setIcon(new ThemeResource("icons/card-default.png"));
   } else {
     String specialIcon = listener.getSpecialIcon(value);
     if (specialIcon != null) {
       icon.setIcon(new ThemeResource("icons/" + specialIcon));
     } else {
       icon.setIcon(new ThemeResource("icons/" + getIconName()));
     }
   }
   iconLayout.addComponent(icon);
   iconLayout.setComponentAlignment(icon, Alignment.MIDDLE_CENTER);
   return iconLayout;
 }