Example usage for com.google.gwt.core.client JsDate create

List of usage examples for com.google.gwt.core.client JsDate create

Introduction

In this page you can find the example usage for com.google.gwt.core.client JsDate create.

Prototype

public static native JsDate create(int year, int month, int dayOfMonth) ;

Source Link

Document

Creates a new date using the specified values.

Usage

From source file:com.emitrom.gwt4.touch2.demo.client.views.ui.editor.EditorViewImpl.java

License:Open Source License

public EditorViewImpl() {

    /**//w w  w. j ava  2 s. co  m
     * Init all form elements.
     */
    initialize();

    /**
     * Init the driver with the editor.
     */
    driver.initialize(this);

    /**
     * Create a simple domain object and populate some of its data.
     */
    person = new Person();
    person.setActive(1);
    person.setAge(2);
    person.setBiography("Emitrom LLC");
    person.setBirthday(JsDate.create(2011, 8, 22));
    person.setCool(true);
    person.setEmail("support@emitrom.com");
    person.setName("Emitrom LLC");
    person.setPassword("Emitrom");
    person.setRating(5);
    person.setSearch("The best");
    person.setSelect("Master");
    person.setSpinner(5);
    person.setWallet(10);
    person.setWebsite("www.emitrom.com");

    /**
     * Push domain data to the UI.
     */
    driver.edit(person);

    addListeners();

}