]> source.dussan.org Git - vaadin-framework.git/commit
#6718 Extend PopupDateField range - allow selection of the last days of the
authorJohannes Dahlström <johannes.dahlstrom@vaadin.com>
Wed, 25 Jan 2012 14:07:13 +0000 (14:07 +0000)
committerJohannes Dahlström <johannes.dahlstrom@vaadin.com>
Wed, 25 Jan 2012 14:07:13 +0000 (14:07 +0000)
commit7396c309a4699e1e61b03cb17d005084758a25ed
tree928e06e9963d8c748fd34f035ac0d1a82615bb93
parent4f50c1b2c01728a5dd4e3efbcb157d7094eebbd5
#6718 Extend PopupDateField range - allow selection of the last days of the
preceding month and the first days of the following month without switching
to that month

Changes:

- Internally use Date objects instead of day-of-month integers to track the
  selected and focused date

- Keep track of the currently displayed month separately from the currently
  focused date

- New CSS class for off-month dates: .v-datefield-calendarpanel-day-offmonth

- Off-month days map to negative or past-the-end-of-month integer ids in
  getSubPart functions

- The popup now always shows exactly 6 weeks, so that depending on the month,
  1 to 7 days of the preceding month and 4 to 13 days of the following month
  are shown

svn changeset:22758/svn branch:6.8
WebContent/VAADIN/themes/base/datefield/datefield.css
src/com/vaadin/terminal/gwt/client/ui/VCalendarPanel.java