本文整理了Java中com.google.gwt.user.datepicker.client.DatePicker.isYearArrowsVisible()
方法的一些代码示例,展示了DatePicker.isYearArrowsVisible()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。DatePicker.isYearArrowsVisible()
方法的具体详情如下:
包路径:com.google.gwt.user.datepicker.client.DatePicker
类名称:DatePicker
方法名:isYearArrowsVisible
[英]Can the user navigate through the years?
[中]
代码示例来源:origin: com.google.gwt/gwt-servlet
private boolean isDatePickerConfigChanged() {
boolean isMonthCurrentlySelectable = monthSelect.getParent() != null;
boolean isYearNavigationCurrentlyEnabled = yearBackwards.getParent() != null;
return getDatePicker().isYearAndMonthDropdownVisible() != isMonthCurrentlySelectable ||
getDatePicker().isYearArrowsVisible() != isYearNavigationCurrentlyEnabled;
}
代码示例来源:origin: com.google.gwt/gwt-servlet
private void setupGrid() {
grid.removeAllRows();
grid.insertRow(0);
// Back arrows
if (getDatePicker().isYearArrowsVisible()) {
addCell(yearBackwards, "1");
}
addCell(monthBackwards, "1");
// Month/Year column
if (getDatePicker().isYearAndMonthDropdownVisible()) {
// Drop-down
if (getModel().isMonthBeforeYear()) {
addCell(monthSelect, "50%", css().month());
addCell(yearSelect, "50%", css().year());
} else {
addCell(yearSelect, "50%", css().year());
addCell(monthSelect, "50%", css().month());
}
} else {
// Text-only
monthColumn = addCell(null, "100%", css().month());
}
// Forward arrows
addCell(monthForwards, "1");
if (getDatePicker().isYearArrowsVisible()) {
addCell(yearForwards, "1");
}
}
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
private boolean isDatePickerConfigChanged() {
boolean isMonthCurrentlySelectable = monthSelect.getParent() != null;
boolean isYearNavigationCurrentlyEnabled = yearBackwards.getParent() != null;
return getDatePicker().isYearAndMonthDropdownVisible() != isMonthCurrentlySelectable ||
getDatePicker().isYearArrowsVisible() != isYearNavigationCurrentlyEnabled;
}
代码示例来源:origin: net.wetheinter/gwt-user
private boolean isDatePickerConfigChanged() {
boolean isMonthCurrentlySelectable = monthSelect.getParent() != null;
boolean isYearNavigationCurrentlyEnabled = yearBackwards.getParent() != null;
return getDatePicker().isYearAndMonthDropdownVisible() != isMonthCurrentlySelectable ||
getDatePicker().isYearArrowsVisible() != isYearNavigationCurrentlyEnabled;
}
代码示例来源:origin: net.wetheinter/gwt-user
private void setupGrid() {
grid.removeAllRows();
grid.insertRow(0);
// Back arrows
if (getDatePicker().isYearArrowsVisible()) {
addCell(yearBackwards, "1");
}
addCell(monthBackwards, "1");
// Month/Year column
if (getDatePicker().isYearAndMonthDropdownVisible()) {
// Drop-down
if (getModel().isMonthBeforeYear()) {
addCell(monthSelect, "50%", css().month());
addCell(yearSelect, "50%", css().year());
} else {
addCell(yearSelect, "50%", css().year());
addCell(monthSelect, "50%", css().month());
}
} else {
// Text-only
monthColumn = addCell(null, "100%", css().month());
}
// Forward arrows
addCell(monthForwards, "1");
if (getDatePicker().isYearArrowsVisible()) {
addCell(yearForwards, "1");
}
}
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
private void setupGrid() {
grid.removeAllRows();
grid.insertRow(0);
// Back arrows
if (getDatePicker().isYearArrowsVisible()) {
addCell(yearBackwards, "1");
}
addCell(monthBackwards, "1");
// Month/Year column
if (getDatePicker().isYearAndMonthDropdownVisible()) {
// Drop-down
if (getModel().isMonthBeforeYear()) {
addCell(monthSelect, "50%", css().month());
addCell(yearSelect, "50%", css().year());
} else {
addCell(yearSelect, "50%", css().year());
addCell(monthSelect, "50%", css().month());
}
} else {
// Text-only
monthColumn = addCell(null, "100%", css().month());
}
// Forward arrows
addCell(monthForwards, "1");
if (getDatePicker().isYearArrowsVisible()) {
addCell(yearForwards, "1");
}
}
内容来源于网络,如有侵权,请联系作者删除!