swingx
  1. swingx
  2. SWINGX-77

JXMonthView: Add year selector drop down

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 0.9.0
    • Fix Version/s: None
    • Component/s: Calendar
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      77

      Description

      Currently, the month view panel only allows navigating month by month by
      clicking the left and right arrow. If the user wants to select say year 2009,
      he or she will have to click the right arrow many many times to get to year
      2009.

      So the enhancement request is to add a year selector drop down so that user can
      select any year quickly

        Issue Links

          Activity

          Hide
          kleopatra added a comment -
          • added implementation of CalendarHeaderHandler which controls a spinner for the
            year (SpinningCalendarHeaderHandler)
          • implemented minimal configuration support via the UIManager values for the new
            header:
          • control whether or not the spinner is focusable (default is false)
          • control whether or not the month nav arrows surround the month text (default
            is false)
          • added support to BasicMonthViewUI to find/instantiate custom header
            implementation via a class name registered in the UIManager
          • updated tests

          Guys, for my taste this looks ugly - but I'm not the visual designer So if
          you come up with improvements (discussed and agreed upon in the forum), I would
          happily commit them.

          Waiting for feedback
          Jeanette

          Show
          kleopatra added a comment - added implementation of CalendarHeaderHandler which controls a spinner for the year (SpinningCalendarHeaderHandler) implemented minimal configuration support via the UIManager values for the new header: control whether or not the spinner is focusable (default is false) control whether or not the month nav arrows surround the month text (default is false) added support to BasicMonthViewUI to find/instantiate custom header implementation via a class name registered in the UIManager updated tests Guys, for my taste this looks ugly - but I'm not the visual designer So if you come up with improvements (discussed and agreed upon in the forum), I would happily commit them. Waiting for feedback Jeanette
          Hide
          kleopatra added a comment -
              • Issue 1093 has been marked as a duplicate of this issue. ***
          Show
          kleopatra added a comment - Issue 1093 has been marked as a duplicate of this issue. ***
          Hide
          trejkaz added a comment -

          I'm interested in this too. The company I work for writes software which
          essentially handles only historical data.

          Show
          trejkaz added a comment - I'm interested in this too. The company I work for writes software which essentially handles only historical data.
          Hide
          Emmanuel Bourg added a comment -

          Moving up or down by one year is fundamental for many use cases. As a quick workaround I would suggest implementing SHIFT+Clic on the buttons to skip one year instead of one month.

          Show
          Emmanuel Bourg added a comment - Moving up or down by one year is fundamental for many use cases. As a quick workaround I would suggest implementing SHIFT+Clic on the buttons to skip one year instead of one month.
          Hide
          Emmanuel Bourg added a comment -

          Here is a simple patch implementing the shift+clic action on the buttons to skip one year.

          Show
          Emmanuel Bourg added a comment - Here is a simple patch implementing the shift+clic action on the buttons to skip one year.

            People

            • Assignee:
              kleopatra
              Reporter:
              kentang
            • Votes:
              17 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated: