TodayAction() { super(getLinkFormat().format(new Object[]{getLinkDay()})); Calendar cal = _monthView.getCalendar(); cal.setTime(getLinkDay()); putValue(NAME, getLinkFormat().format(new Object[] {cal.getTime()})); }
TodayAction() { super(getLinkFormat().format(new Object[]{getLinkDay()})); Calendar cal = _monthView.getCalendar(); cal.setTime(getLinkDay()); putValue(NAME, getLinkFormat().format(new Object[] {cal.getTime()})); }
TodayAction() { super(getLinkFormat().format(new Object[]{getLinkDay()})); Calendar cal = _monthView.getCalendar(); cal.setTime(getLinkDay()); putValue(NAME, getLinkFormat().format(new Object[] {cal.getTime()})); }
TodayAction() { super(getLinkFormat().format(new Object[]{getLinkDay()})); Calendar cal = _monthView.getCalendar(); cal.setTime(getLinkDay()); putValue(NAME, getLinkFormat().format(new Object[] {cal.getTime()})); }
TodayAction() { super(getLinkFormat().format(new Object[]{getLinkDay()})); Calendar cal = _monthView.getCalendar(); cal.setTime(getLinkDay()); putValue(NAME, getLinkFormat().format(new Object[] {cal.getTime()})); }
/** * {@inheritDoc} <p> * Overridden to update the link format and hyperlink text. */ @Override public void setLocale(Locale l) { super.setLocale(l); updateLinkFormat(); todayLink.setText(getLinkFormat().format(new Object[]{getLinkDay()})); }
/** * {@inheritDoc} <p> * Overridden to update the link format and hyperlink text. */ @Override public void setLocale(Locale l) { super.setLocale(l); updateLinkFormat(); todayLink.setText(getLinkFormat().format(new Object[]{getLinkDay()})); }
/** * {@inheritDoc} <p> * Overridden to update the link format and hyperlink text. */ @Override public void setLocale(Locale l) { super.setLocale(l); updateLinkFormat(); todayLink.setText(getLinkFormat().format(new Object[]{getLinkDay()})); }
/** * {@inheritDoc} <p> * Overridden to update the link format and hyperlink text. */ @Override public void setLocale(Locale l) { super.setLocale(l); updateLinkFormat(); todayLink.setText(getLinkFormat().format(new Object[]{getLinkDay()})); }
/** * {@inheritDoc} <p> * Overridden to update the link format and hyperlink text. */ @Override public void setLocale(Locale l) { super.setLocale(l); updateLinkFormat(); todayLink.setText(getLinkFormat().format(new Object[]{getLinkDay()})); }
/** * Navigates to linkDate. If commit, the linkDate is selected * and committed. If not commit, the linkDate is scrolled to visible, if the * monthview is open, does nothing for invisible monthView. * * @param commit boolean to indicate whether the linkDate should be * selected and committed */ protected void home(boolean commit) { if (commit) { Calendar cal = datePicker.getMonthView().getCalendar(); cal.setTime(datePicker.getLinkDay()); datePicker.getMonthView().setSelectionDate(cal.getTime()); datePicker.getMonthView().commitSelection(); } else { datePicker.getMonthView().ensureDateVisible(datePicker.getLinkDay()); } }
/** * Navigates to linkDate. If commit, the linkDate is selected * and committed. If not commit, the linkDate is scrolled to visible, if the * monthview is open, does nothing for invisible monthView. * * @param commit boolean to indicate whether the linkDate should be * selected and committed */ protected void home(boolean commit) { if (commit) { Calendar cal = datePicker.getMonthView().getCalendar(); cal.setTime(datePicker.getLinkDay()); datePicker.getMonthView().setSelectionDate(cal.getTime()); datePicker.getMonthView().commitSelection(); } else { datePicker.getMonthView().ensureDateVisible(datePicker.getLinkDay()); } }
/** * Navigates to linkDate. If commit, the linkDate is selected * and committed. If not commit, the linkDate is scrolled to visible, if the * monthview is open, does nothing for invisible monthView. * * @param commit boolean to indicate whether the linkDate should be * selected and committed */ protected void home(boolean commit) { if (commit) { Calendar cal = datePicker.getMonthView().getCalendar(); cal.setTime(datePicker.getLinkDay()); datePicker.getMonthView().setSelectionDate(cal.getTime()); datePicker.getMonthView().commitSelection(); } else { datePicker.getMonthView().ensureDateVisible(datePicker.getLinkDay()); } }
/** * Navigates to linkDate. If commit, the linkDate is selected * and committed. If not commit, the linkDate is scrolled to visible, if the * monthview is open, does nothing for invisible monthView. * * @param commit boolean to indicate whether the linkDate should be * selected and committed */ protected void home(boolean commit) { if (commit) { Calendar cal = datePicker.getMonthView().getCalendar(); cal.setTime(datePicker.getLinkDay()); datePicker.getMonthView().setSelectionDate(cal.getTime()); datePicker.getMonthView().commitSelection(); } else { datePicker.getMonthView().ensureDateVisible(datePicker.getLinkDay()); } }
/** * Navigates to linkDate. If commit, the linkDate is selected * and committed. If not commit, the linkDate is scrolled to visible, if the * monthview is open, does nothing for invisible monthView. * * @param commit boolean to indicate whether the linkDate should be * selected and committed */ protected void home(boolean commit) { if (commit) { Calendar cal = datePicker.getMonthView().getCalendar(); cal.setTime(datePicker.getLinkDay()); datePicker.getMonthView().setSelectionDate(cal.getTime()); datePicker.getMonthView().commitSelection(); } else { datePicker.getMonthView().ensureDateVisible(datePicker.getLinkDay()); } }
/** * Updates internals after picker's date property changed. */ protected void updateFromDateChanged() { Date visibleHook = datePicker.getDate() != null ? datePicker.getDate() : datePicker.getLinkDay(); datePicker.getMonthView().ensureDateVisible(visibleHook); datePicker.getEditor().setValue(datePicker.getDate()); }
/** * Updates internals after picker's date property changed. */ protected void updateFromDateChanged() { Date visibleHook = datePicker.getDate() != null ? datePicker.getDate() : datePicker.getLinkDay(); datePicker.getMonthView().ensureDateVisible(visibleHook); datePicker.getEditor().setValue(datePicker.getDate()); }
/** * Updates internals after picker's date property changed. */ protected void updateFromDateChanged() { Date visibleHook = datePicker.getDate() != null ? datePicker.getDate() : datePicker.getLinkDay(); datePicker.getMonthView().ensureDateVisible(visibleHook); datePicker.getEditor().setValue(datePicker.getDate()); }
/** * Updates internals after picker's date property changed. */ protected void updateFromDateChanged() { Date visibleHook = datePicker.getDate() != null ? datePicker.getDate() : datePicker.getLinkDay(); datePicker.getMonthView().ensureDateVisible(visibleHook); datePicker.getEditor().setValue(datePicker.getDate()); }
/** * Updates internals after picker's date property changed. */ protected void updateFromDateChanged() { Date visibleHook = datePicker.getDate() != null ? datePicker.getDate() : datePicker.getLinkDay(); datePicker.getMonthView().ensureDateVisible(visibleHook); datePicker.getEditor().setValue(datePicker.getDate()); }