eclipse-nattable / nattable

High performance SWT data grid
https://eclipse.dev/nattable/
Eclipse Public License 2.0
15 stars 6 forks source link

[ComboBox] Improve usability with checkboxes #25

Closed fipro78 closed 8 months ago

fipro78 commented 10 months ago

There are some small enhancements that could improve the usability of the NatCombo, the FilterNatCombo and the cell editors that use these controls.

  1. Link item and checkbox If checkboxes are used in the dropdown (e.g. in the Excel-like filter dropdown), the user currently needs to select the checkbox to enable or disable a filter value. For some users it could increase the usability if a click on the item would also change the checkbox state.

  2. Trigger multi-selection on key interaction (SPACE) If checkboxes are used in the dropdown (e.g. in the Excel-like filter dropdown), and a users moves the selection in the dropdown via arrow keys and triggers a multi-selection via CTRL or SHIFT modifier key, and then presses SPACE, only the checkbox state of the item that has the selection focus changes. The expectation would be that all selected items change the checkbox state.

  3. Set focus on the filter control of the combobox It is possible to add a filter textbox to the dropdown, so the user can filter the possible values. Currently a user needs to click twice to be able to enter a value in the filter textbox. It would be nice if it would be configurable if the focus should be set on the filterbox instead of the dropdown. This is for example already possible for the textbox if free editing is enabled on a NatCombo.

  4. Disable selection state in Select All and Add to selection items The FilterNatCombo adds two additional items, Select All and, if configured, Add to selection. Both items are internally separated CheckboxTableViewer and therefore do not share a selection model with the main dropdown that shows the content. For the user this is not visible, as it looks like a single list of items. On clicking items in the dropdown and the additional items, it looks like there are multiple selections active. It would be nice if the additional items in the FilterNatCombo would not show a selection, to make it clear that there is only a single selection, and the additional items are not itself selectable, they can only be clicked to change the state of the main content.

fipro78 commented 8 months ago

Fixed and verified by user project