/** * Gets the current month the date picker is showing. * * <p> * A datepicker <b> may </b> show days not in the current month. It * <b>must</b> show all days in the current month. * </p> * * @return the current month * */ public Date getCurrentMonth() { return getModel().getCurrentMonth(); }
/** * Formats the current specified month. For example "September" in English. * * @return the formatted month */ public String formatCurrentMonth() { return getMonthFormatter().format(getCurrentMonth()); }
/** * Format the current month and year in the current locale. For example, "Jan 2013" in English. * * @return the formatted month and year */ public String formatCurrentMonthAndYear() { return getMonthAndYearFormatter().format(getCurrentMonth()); }
/** * Formats the current specified year. For example "2012". * * @return the formatted year */ public String formatCurrentYear() { return getYearFormatter().format(getCurrentMonth()); }
@Override public void onChange(ChangeEvent event) { int previousMonth = getModel().getCurrentMonth().getMonth(); int newMonth = monthListBox.getSelectedIndex(); int delta = newMonth - previousMonth; addMonths(delta); } });
@Override protected void refresh() { if (isDatePickerConfigChanged()) { // if the config has changed since the last refresh, rebuild the grid setupGrid(); } setDate(getModel().getCurrentMonth()); }
/** * Gets the current month the date picker is showing. * * <p> * A datepicker <b> may </b> show days not in the current month. It * <b>must</b> show all days in the current month. * </p> * * @return the current month * */ public Date getCurrentMonth() { return getModel().getCurrentMonth(); }
/** * Gets the current month the date picker is showing. * * <p> * A datepicker <b> may </b> show days not in the current month. It * <b>must</b> show all days in the current month. * </p> * * @return the current month * */ public Date getCurrentMonth() { return getModel().getCurrentMonth(); }
/** * Format the current month and year in the current locale. For example, "Jan 2013" in English. * * @return the formatted month and year */ public String formatCurrentMonthAndYear() { return getMonthAndYearFormatter().format(getCurrentMonth()); }
/** * Format the current month and year in the current locale. For example, "Jan 2013" in English. * * @return the formatted month and year */ public String formatCurrentMonthAndYear() { return getMonthAndYearFormatter().format(getCurrentMonth()); }
/** * Formats the current specified month. For example "September" in English. * * @return the formatted month */ public String formatCurrentMonth() { return getMonthFormatter().format(getCurrentMonth()); }
/** * Formats the current specified year. For example "2012". * * @return the formatted year */ public String formatCurrentYear() { return getYearFormatter().format(getCurrentMonth()); }
/** * Formats the current specified year. For example "2012". * * @return the formatted year */ public String formatCurrentYear() { return getYearFormatter().format(getCurrentMonth()); }
/** * Formats the current specified month. For example "September" in English. * * @return the formatted month */ public String formatCurrentMonth() { return getMonthFormatter().format(getCurrentMonth()); }
@Override public void onChange(ChangeEvent event) { int previousMonth = getModel().getCurrentMonth().getMonth(); int newMonth = monthListBox.getSelectedIndex(); int delta = newMonth - previousMonth; addMonths(delta); } });
@Override public void onChange(ChangeEvent event) { int previousMonth = getModel().getCurrentMonth().getMonth(); int newMonth = monthListBox.getSelectedIndex(); int delta = newMonth - previousMonth; addMonths(delta); } });
@Override protected void refresh() { if (isDatePickerConfigChanged()) { // if the config has changed since the last refresh, rebuild the grid setupGrid(); } setDate(getModel().getCurrentMonth()); }
@Override protected void refresh() { if (isDatePickerConfigChanged()) { // if the config has changed since the last refresh, rebuild the grid setupGrid(); } setDate(getModel().getCurrentMonth()); }