Example usage for com.vaadin.ui.renderers DateRenderer DateRenderer

List of usage examples for com.vaadin.ui.renderers DateRenderer DateRenderer

Introduction

In this page you can find the example usage for com.vaadin.ui.renderers DateRenderer DateRenderer.

Prototype

public DateRenderer() 

Source Link

Document

Creates a new date renderer.

Usage

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());
}