List of usage examples for com.vaadin.ui.renderers DateRenderer DateRenderer
public DateRenderer()
From source file:org.gtstouch.events.EventDataGrid.java
public EventDataGrid() { setSizeFull();//from w w w. ja v a 2 s .co m setSelectionMode(SelectionMode.SINGLE); BeanItemContainer<EventData> container = new BeanItemContainer<>(EventData.class); setContainerDataSource(container); getContainer().addNestedContainerBean("eventDataPK"); setColumnReorderingAllowed(true); setFrozenColumnCount(2); getColumn("eventDataPK.timestamp").setRenderer(new DateRenderer(), new DateToUnixConverter()); getColumn("creationTime").setRenderer(new DateRenderer(), new DateToUnixConverter()); }