List of usage examples for com.vaadin.ui.themes ValoTheme LAYOUT_WELL
String LAYOUT_WELL
To view the source code for com.vaadin.ui.themes ValoTheme LAYOUT_WELL.
Click Source Link
From source file:com.github.djabry.platform.vaadin.view.SideBarView.java
License:Open Source License
@PostConstruct public void init() { this.setSizeFull(); HorizontalLayout titleHolder = new HorizontalLayout(); titleHolder.addComponent(buildTitle()); titleHolder.addStyleName(ValoTheme.LAYOUT_WELL); //titleHolder.setMargin(true); //titleHolder.setSpacing(true); //this.addComponent(titleHolder); VerticalLayout sidebarHolder = new VerticalLayout(); //sidebarHolder.addStyleName(ValoTheme.LAYOUT_WELL); sidebarHolder.addStyleName(ValoTheme.MENU_ROOT); //sidebarHolder.addStyleName(ValoTheme.MENUBAR_BORDERLESS); this.addComponent(sidebarHolder); sidebarHolder.setSizeFull();// w w w. j a va 2s.c o m sidebarHolder.addComponent(sideBar); //sideBar.setStyleName(ValoTheme.ACCORDION_BORDERLESS); sideBar.addStyleName(ValoTheme.MENU_PART); sideBar.setSizeFull(); }
From source file:com.mechanicshop.components.MaintenanceLayout.java
@PostConstruct void init() { addStyleName(ValoTheme.LAYOUT_WELL); setMargin(true); setSizeFull(); buildLayout(); customizeTable(); fillTable(); }
From source file:com.mechanicshop.components.TableLayout.java
@PostConstruct void init() { addStyleName(ValoTheme.LAYOUT_WELL); dataEntryLayout.sendBtn.addClickListener(btnListener); setMargin(true); setSizeFull(); buildLayout(); customizeTable(); }
From source file:de.gedoplan.webclients.vaadin.views.CustomerDetailView.java
public void init() { Double discount = customerService.calculateCustomerDiscount(customer.getCustomerID()).getDiscount(); Label name = new Label(new PropertyFormatter(form.getProperty(Customer_.companyName)) { @Override// w w w .ja va 2 s .c o m public String format(Object value) { return value + " (" + customer.getCustomerID() + ")"; } @Override public Object parse(String formattedValue) throws Exception { throw new UnsupportedOperationException("Not supported yet."); } }); name.setStyleName(ValoTheme.LABEL_BOLD); Label rabattLabel = new Label(Messages.customer_discount.value()); rabattLabel.setStyleName(ValoTheme.LABEL_BOLD); rabattLabel.setSizeUndefined(); Label rabatt = new Label(new DecimalFormat("#0.00").format(discount) + "%"); rabatt.setSizeUndefined(); rabatt.addStyleName(ValoTheme.LABEL_COLORED); rabatt.addStyleName(ValoTheme.LABEL_BOLD); HorizontalLayout headline = new HorizontalLayout(name, rabattLabel, rabatt); headline.setComponentAlignment(rabatt, Alignment.TOP_RIGHT); headline.setExpandRatio(name, 1); headline.setWidth(100, Unit.PERCENTAGE); headline.setSpacing(true); headline.setStyleName(ValoTheme.LAYOUT_WELL); headline.setMargin(new MMarginInfo(false, true)); Panel panel = new Panel(); panel.setContent(form); setMargin(true); setSpacing(true); addComponents(headline, panel); }