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); }
public void setComponentStyles() { // if (! getUI().getTheme().equals("vaadin_theme")) { // tableList.addStyleName("compact small"); // tableDetil.addStyleName("compact small"); // // fieldOrderno.addStyleName("small"); // fieldInvoiceno.addStyleName("small"); // comboTipeJual.addStyleName("small"); // comboSalesman.addStyleName("small"); // comboCustomer.addStyleName("small"); // dateFieldOrderdate.addStyleName("small"); // dateFieldInvoicedate.addStyleName("small"); // comboTunaikredit.addStyleName("small"); // comboTop.addStyleName("small"); // dateFieldDuedate.addStyleName("small"); // comboWarehouse.addStyleName("small"); // checkEndofday.addStyleName("small"); // checkSaldo.addStyleName("small"); // checkSearch1.addStyleName("small"); btnSearch.addStyleName("small"); btnNewForm.addStyleName("small"); btnEditForm.addStyleName("small"); btnDeleteForm.addStyleName("small"); // btnPrint.addStyleName("small"); btnSaveForm.addStyleName("small"); btnCancelForm.addStyleName("small"); btnAddItem.addStyleName("small"); btnEditItem.addStyleName("small"); btnRemoveItem.addStyleName("small"); btnPosting.addStyleName("small"); btnLapselisih.addStyleName("small"); btnPostingBatal.addStyleName("small"); btnSeparator1.addStyleName("small"); btnSeparator2.addStyleName("small"); // } // tabSheet.addStyleName("framed compact-tabbar small"); tabSheet.addStyleName(Reindeer.TABSHEET_BORDERLESS); tabSheet.addStyleName(Reindeer.TABSHEET_SMALL); }
private ProfilePreferencesWindow(final User user, final boolean preferencesTabOpen) { addStyleName("profile-window"); setId(ID); Responsive.makeResponsive(this); setModal(true); setCloseShortcut(KeyCode.ESCAPE, null); setResizable(false); setClosable(false); setHeight(90.0f, Unit.PERCENTAGE); setWidth(60.0f, Unit.PERCENTAGE); VerticalLayout content = new VerticalLayout(); content.setSizeFull(); content.setMargin(new MarginInfo(true, false, false, false)); setContent(content); TabSheet detailsWrapper = new TabSheet(); detailsWrapper.setSizeFull(); detailsWrapper.addStyleName(ValoTheme.TABSHEET_PADDED_TABBAR); detailsWrapper.addStyleName(ValoTheme.TABSHEET_ICONS_ON_TOP); detailsWrapper.addStyleName(ValoTheme.TABSHEET_CENTERED_TABS); content.addComponent(detailsWrapper); content.setExpandRatio(detailsWrapper, 1f); detailsWrapper.addComponent(buildProfileTab()); detailsWrapper.addComponent(buildPreferencesTab()); if (preferencesTabOpen) { detailsWrapper.setSelectedTab(1); } content.addComponent(buildFooter()); fieldGroup = new BeanFieldGroup<>(User.class); fieldGroup.bindMemberFields(this); fieldGroup.setItemDataSource(user); }