com.google.gwt.user.datepicker.client.DatePicker.addShowRangeHandler()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(1.8k)|赞(0)|评价(0)|浏览(120)

本文整理了Java中com.google.gwt.user.datepicker.client.DatePicker.addShowRangeHandler()方法的一些代码示例,展示了DatePicker.addShowRangeHandler()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。DatePicker.addShowRangeHandler()方法的具体详情如下:
包路径:com.google.gwt.user.datepicker.client.DatePicker
类名称:DatePicker
方法名:addShowRangeHandler

DatePicker.addShowRangeHandler介绍

[英]Adds a show range handler and immediately activate the handler on the current view.
[中]添加显示范围处理程序并立即在当前视图上激活该处理程序。

代码示例

代码示例来源:origin: com.google.gwt/gwt-servlet

/**
 * Adds a show range handler and immediately activate the handler on the
 * current view.
 *
 * @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);
}

代码示例来源:origin: com.vaadin.external.gwt/gwt-user

/**
 * Adds a show range handler and immediately activate the handler on the
 * current view.
 *
 * @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);
}

代码示例来源:origin: net.wetheinter/gwt-user

/**
 * Adds a show range handler and immediately activate the handler on the
 * current view.
 *
 * @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);
}

相关文章