本文整理了Java中com.google.gwt.user.datepicker.client.DatePicker.setTransientEnabledOnDates()
方法的一些代码示例,展示了DatePicker.setTransientEnabledOnDates()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。DatePicker.setTransientEnabledOnDates()
方法的具体详情如下:
包路径:com.google.gwt.user.datepicker.client.DatePicker
类名称:DatePicker
方法名:setTransientEnabledOnDates
[英]Sets a group of visible dates to be enabled or disabled. This is only set until the next time the DatePicker is refreshed.
[中]设置要启用或禁用的一组可见日期。只有在下次刷新日期选择器时才会设置此选项。
代码示例来源:origin: com.google.gwt/gwt-servlet
/**
* Sets a group of visible dates to be enabled or disabled. This is only set
* until the next time the DatePicker is refreshed.
*/
public final void setTransientEnabledOnDates(boolean enabled,
Iterable<Date> dates) {
for (Date d : dates) {
setTransientEnabledOnDates(enabled, d);
}
}
代码示例来源:origin: com.google.gwt/gwt-servlet
/**
* Sets a visible date to be enabled or disabled. This is only set until the
* next time the DatePicker is refreshed.
*/
public final void setTransientEnabledOnDates(boolean enabled, Date date,
Date... moreDates) {
setTransientEnabledOnDates(enabled, date);
for (Date d : moreDates) {
setTransientEnabledOnDates(enabled, d);
}
}
代码示例来源:origin: net.wetheinter/gwt-user
/**
* Sets a group of visible dates to be enabled or disabled. This is only set
* until the next time the DatePicker is refreshed.
*/
public final void setTransientEnabledOnDates(boolean enabled,
Iterable<Date> dates) {
for (Date d : dates) {
setTransientEnabledOnDates(enabled, d);
}
}
代码示例来源:origin: net.wetheinter/gwt-user
/**
* Sets a visible date to be enabled or disabled. This is only set until the
* next time the DatePicker is refreshed.
*/
public final void setTransientEnabledOnDates(boolean enabled, Date date,
Date... moreDates) {
setTransientEnabledOnDates(enabled, date);
for (Date d : moreDates) {
setTransientEnabledOnDates(enabled, d);
}
}
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
/**
* Sets a group of visible dates to be enabled or disabled. This is only set
* until the next time the DatePicker is refreshed.
*/
public final void setTransientEnabledOnDates(boolean enabled,
Iterable<Date> dates) {
for (Date d : dates) {
setTransientEnabledOnDates(enabled, d);
}
}
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
/**
* Sets a visible date to be enabled or disabled. This is only set until the
* next time the DatePicker is refreshed.
*/
public final void setTransientEnabledOnDates(boolean enabled, Date date,
Date... moreDates) {
setTransientEnabledOnDates(enabled, date);
for (Date d : moreDates) {
setTransientEnabledOnDates(enabled, d);
}
}
代码示例来源:origin: com.vaadin.addon/vaadin-touchkit-agpl
private void disableDaysNotInCurrentMonth(Date startDay, Date endDay) {
List<Date> disableDates = new LinkedList<Date>();
Date firstDayOfMonth = firstDayOfMonth(calendarWidget
.getCurrentMonth());
Date lastDayOfMonth = lastDayOfMonth(calendarWidget
.getCurrentMonth());
Date dayAfterEnd = (Date) endDay.clone();
CalendarUtil.addDaysToDate(dayAfterEnd, 1);
for (Date day = startDay; day.before(dayAfterEnd); CalendarUtil
.addDaysToDate(day, 1)) {
if (day.before(firstDayOfMonth) || day.after(lastDayOfMonth)) {
disableDates.add((Date) day.clone());
}
}
if (!disableDates.isEmpty()) {
calendarWidget.setTransientEnabledOnDates(false, disableDates);
}
}
内容来源于网络,如有侵权,请联系作者删除!