List of usage examples for com.vaadin.v7.ui Table setContainerDataSource
@Override public void setContainerDataSource(Container newDataSource)
From source file:com.adonis.ui.print.PrintVehiclesUI.java
@Override protected void init(VaadinRequest request) { Table table = new Table(); table.setContainerDataSource(MainUI.getVehiclesCrudView().container); table.setVisibleColumns("vehicleNmbr", "licenseNmbr", "make", "vehicleType", "model", "year", "active", "location", "price", "priceDay", "priceWeek", "priceMonth", "status"); // Have some content to print setContent(table);//from ww w. ja v a 2 s. co m // Print automatically when the window opens JavaScript.getCurrent().execute("setTimeout(function() {" + " print(); self.close();}, 0);"); }