RFR: 8314968: Public InputMap
Andy Goryachev
angorya at openjdk.org
Fri Oct 13 16:23:59 UTC 2023
Summary:
- public InputMap, KeyBinding, BehaviorBase in javafx.scene.control.behavior package
- InputMap allows for adding key mappings on control (user-defined) and behavior (defined by the skin) levels
- two stage mapping: key binding -> function tag -> function; enables a wide range of control customization (in some cases even without subclassing behavior classes)
For more detailed introduction, see
https://gist.github.com/andy-goryachev-oracle/294d8e4b3094fe16f8d55f6dd8b21c09
A number of Controls has been converted to use the new InputMap implementation:
- ColorPicker
- ComboBox
- DatePicker
- PasswordField
- TextArea
- TextField
This PR requires https://github.com/openjdk/jfx/pull/1221 to go in first.
-------------
Commit messages:
- Merge remote-tracking branch 'origin/master' into 8314968.input.map
- Merge branch '8314906.behavior.test' into 8314968.input.map
- review comments
- Merge remote-tracking branch 'origin/master' into 8314968.input.map
- spelling
- Merge branch '8314906.behavior.test' into 8314968.input.map
- review comments
- Merge remote-tracking branch 'origin/master' into 8314906.behavior.test
- whitespace
- whitespace
- ... and 128 more: https://git.openjdk.org/jfx/compare/f76437da...9df9b60f
Changes: https://git.openjdk.org/jfx/pull/1254/files
Webrev: https://webrevs.openjdk.org/?repo=jfx&pr=1254&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8314968
Stats: 3165 lines in 33 files changed: 2369 ins; 358 del; 438 mod
Patch: https://git.openjdk.org/jfx/pull/1254.diff
Fetch: git fetch https://git.openjdk.org/jfx.git pull/1254/head:pull/1254
PR: https://git.openjdk.org/jfx/pull/1254
More information about the openjfx-dev
mailing list