Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Does SWT support JavaBeans?

JavaBeans support swt
0
Posted

Does SWT support JavaBeans?

0

To the extent that it makes sense, given the constraints of operating system compatibility, SWT mirrors the beans behavior. An example of this is the use of standard beans mechanisms for event dispatch (EventListener, EventObject and adapter classes). Some aspects of the beans paradigm, such as the ability to create beans with null constructors, run counter to the constraints of the underlying operating systems that SWT runs on. For example, operating systems do not typically support creating a widget without specifying its parent. The essence of the problem is that if you allow a widget to be created with a null constructor, then you can’t actually create the o/s resources at the time the constructor runs (you would have to wait until later, after the parent has been set). We can not do this, since we always create the o/s resources in the constructor, and for performance/efficiency/consistency reasons do not keep slots in the object to hold whatever state would be required if the obj

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.