Why are some events like Selection not fired in response to programmatic widget changes?
This is a design decision that was made in order to minimize notification of potentially unwanted events. For example, when the selection of a control is changed programmatically, SWT does not issue a selection event. If this were not the case then changing the selection multiple times would send multiple notifications and run application listener code multiple times, thereby leading to a potential performance problem.
Related Questions
- How does evolution through natural selection result in changes in biodiversity through the increase or decrease genetic diversity within a population?
- What was the sequence of events in the Water Bureau’s response to the discovery of potential contamination in the water system?
- Why are some events like Selection not fired in response to programmatic widget changes?