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

need API to select an item in ContextMenu

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: fx2.0
    • Fix Version/s: tbd
    • Component/s: javafx

      Description

      There's no possibility to programmatically select an item in ContextMenu.

      WebView needs this functionality. It uses a ContextMenu to emulate a drop down list of the html <select> tag. The list may be quite long (e.g. a list of countries),
      in such a case it's usually (and should be) possible to navigate the list by typing a first character of an item's title. The first item with a title starting with the character
      gets automatically selected.

      All the logic (processing kbd input and matching an appropriate item) is already implemented on webkit side. WebView, as a platform component implementing
      the webkit front-end, is only required to select an item of a specified serial number in ContextMenu.

      The ContextMenu skin has that logic implemented. So, ContextMenu only lacks an appropriate API method.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                ant Anton Tarasov
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Imported: