Example usage for com.google.gwt.event.logical.shared ShowRangeHandler onShowRange

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

Introduction

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

Prototype

void onShowRange(ShowRangeEvent<V> event);

Source Link

Document

Called when ShowRangeEvent is fired.

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./*w w  w  . j  a v  a  2  s.  com*/
 * 
 * @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);
}