public HandlerRegistration addShowRangeHandler(ShowRangeHandler<Date> handler) { return addHandler(handler, ShowRangeEvent.getType()); }
/** * Fires a show range event on all registered handlers in the handler manager. * * @param <V> the type of range * @param <S> the event source * @param source the source of the handlers * @param start the start of the range * @param end the end of the range */ public static <V, S extends HasShowRangeHandlers<V> & HasHandlers> void fire( S source, V start, V end) { if (TYPE != null) { ShowRangeEvent<V> event = new ShowRangeEvent<V>(start, end); source.fireEvent(event); } }
@Override public void onLoad() { ShowRangeEvent.fire(this, getFirstDate(), getLastDate()); }
@Override public HandlerRegistration addShowRangeHandler(final ShowRangeHandler<Date> handler) { return handlers.addHandler(ShowRangeEvent.getType(), handler); }
/** * Refreshes all components of this date picker. */ protected final void refreshAll() { highlighted = null; getModel().refresh(); getView().refresh(); getMonthSelector().refresh(); if (isAttached()) { ShowRangeEvent.fire(this, getFirstDate(), getLastDate()); } getView().setAriaSelectedCell(value); }
/** * Fires a show range event on all registered handlers in the handler manager. * * @param <V> the type of range * @param <S> the event source * @param source the source of the handlers * @param start the start of the range * @param end the end of the range */ public static <V, S extends HasShowRangeHandlers<V> & HasHandlers> void fire( S source, V start, V end) { if (TYPE != null) { ShowRangeEvent<V> event = new ShowRangeEvent<V>(start, end); source.fireEvent(event); } }
public HandlerRegistration addShowRangeHandler(ShowRangeHandler<Date> handler) { return addHandler(handler, ShowRangeEvent.getType()); }
@Override public void onLoad() { ShowRangeEvent.fire(this, getFirstDate(), getLastDate()); }
/** * Fires a show range event on all registered handlers in the handler manager. * * @param <V> the type of range * @param <S> the event source * @param source the source of the handlers * @param start the start of the range * @param end the end of the range */ public static <V, S extends HasShowRangeHandlers<V> & HasHandlers> void fire( S source, V start, V end) { if (TYPE != null) { ShowRangeEvent<V> event = new ShowRangeEvent<V>(start, end); source.fireEvent(event); } }
public HandlerRegistration addShowRangeHandler(ShowRangeHandler<Date> handler) { return addHandler(handler, ShowRangeEvent.getType()); }
@Override public void onLoad() { ShowRangeEvent.fire(this, getFirstDate(), getLastDate()); }
public static <V> Observable<ShowRangeEvent<V>> showRange(Widget source) { return Observable.create(s -> register(s, source.addHandler((ShowRangeHandler<V>) s::onNext, ShowRangeEvent.getType())), uiBackpressureMode()); }
/** * Refreshes all components of this date picker. */ protected final void refreshAll() { highlighted = null; getModel().refresh(); getView().refresh(); getMonthSelector().refresh(); if (isAttached()) { ShowRangeEvent.fire(this, getFirstDate(), getLastDate()); } getView().setAriaSelectedCell(value); }
public static <V> Observable<ShowRangeEvent<V>> showRange(Widget source) { return Observable.create(s -> register(s, source.addHandler((ShowRangeHandler<V>) s::onNext, ShowRangeEvent.getType()))); }
/** * Refreshes all components of this date picker. */ protected final void refreshAll() { highlighted = null; getModel().refresh(); getView().refresh(); getMonthSelector().refresh(); if (isAttached()) { ShowRangeEvent.fire(this, getFirstDate(), getLastDate()); } getView().setAriaSelectedCell(value); }