Example usage for com.google.gwt.event.logical.shared ShowRangeEvent ShowRangeEvent

List of usage examples for com.google.gwt.event.logical.shared ShowRangeEvent ShowRangeEvent

Introduction

In this page you can find the example usage for com.google.gwt.event.logical.shared ShowRangeEvent ShowRangeEvent.

Prototype

protected ShowRangeEvent(V start, V end) 

Source Link

Document

Creates a new show range event.

Usage

From source file:net.cbtltd.client.field.datepicker.DatePicker.java

License:Apache License

/**
 * Adds a show range handler and immediately activate the handler on the
 * current view.//from  w ww  .java 2  s. co m
 * 
 * @param handler the handler
 * @return the handler registration
 */
public HandlerRegistration addShowRangeHandlerAndFire(ShowRangeHandler<Date> handler) {
    ShowRangeEvent<Date> event = new ShowRangeEvent<Date>(getView().getFirstDate(), getView().getLastDate()) {
    };
    handler.onShowRange(event);
    return addShowRangeHandler(handler);
}