Example usage for com.google.gwt.gen2.datepicker.client DatePicker setValue

List of usage examples for com.google.gwt.gen2.datepicker.client DatePicker setValue

Introduction

In this page you can find the example usage for com.google.gwt.gen2.datepicker.client DatePicker setValue.

Prototype

public final void setValue(Date date) 

Source Link

Document

Sets the selected date.

Usage

From source file:com.google.gwt.gen2.demo.datepicker.client.DatePickerDemo.java

License:Apache License

private DatePicker simplePicker() {
    DatePicker picker = new DatePicker();
    Date d = new Date();
    d.setMonth(2);//from  w w  w  .jav  a 2s  .  co m
    d.setDate(1);
    picker.setValue(d);
    return picker;
}