Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8097964

[Accessibility] Implement DatePicker

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 8u20
    • 8u20
    • javafx
    • None

    Description

      Implement DatePicker on Mac (and Windows...)

      For Windows I didn't see a easy way to do it, native date time controls are made up of inner text field controls.

      On Mac there is the AXDateField and the AXTimeField, but that is not what the native cocoa control uses.
      It uses the undocumented AXDateTimeArea.
      This role uses the AXDateTimeComponents, so the best of my observation that requires a NSNumber (Integer)
      where each bit represent a component

      bit 0 - AM/PM (I suspect)
      bit 1 - seconds
      bit 2 - minute (I think)
      bit 3 - hour (I think)
      bit 4 - no clue
      bit 5 - day
      bit 6 - month (I think)
      bit 7 - year (I think)

      Since we are only doing the a date picker we should return 224 (month/day/year).
      We also will need to add support to NSDate in MacVariable.
      I believe we should be able to use NSDate#dateWithTimeIntervalSince1970 and java LocalDate#toEpochDay() to transfer the data using a long.

      Attachments

        Activity

          People

            fheidric Felipe Heidrich (Inactive)
            fheidric Felipe Heidrich (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported: