jmix-projects / jmix-ui

DEPRECATED. Use https://github.com/jmix-framework/jmix
https://www.jmix.io
3 stars 7 forks source link

Add unsupportedHandlers parameter to StudioComponent, StudioFacet and StudioElement annotations #788

Closed GlebDurygin closed 2 years ago

GlebDurygin commented 2 years ago

There is a problem that the UI component has a set of unsupported handlers that it acquired from the parent component (for example - EntityComboBox does not support setFormatter and addFieldValueChangeListener handlers). Such handlers are displayed in the Studio (ComponentInspector -> Handlers panel; Generate Handler panel; GenerateHandlerForComponentIntention) and confuse users.

Studio issue: https://youtrack.jmix.io/issue/JST-2619

Solution

It was decided to add unsupportedHandlers parameter to the @StudioComponent, @StudioFacet and @StudioElement annotations that will define the names of unsupported handlers

QA

Check that unsupported handlers don't appear in the following places: 1) Component Inspector -> Handlers panel

Снимок экрана 2022-02-17 в 14 40 42

2) Screen Controller -> Generate Handler notification panel

Снимок экрана 2022-02-17 в 14 42 05

3) Screen Descriptor -> click on component tag -> call Generate component handler intention

Снимок экрана 2022-02-17 в 14 43 27

The list of unsupported handlers:

Afanasevaa36 commented 2 years ago

Jmix version: 1.2.0-SNAPSHOT - verified