简体   繁体   中英

How to listen to a button getting enabled or disabled in SWT?

我在SWT中有一个按钮,我想添加一个监听器,这样每当按钮启用或禁用时,我都可以打印一些东西。

SWT does not provide notifications for enablement changes.

If such notifications are actually necessary, the code that calls setEnabled() needs to send these notifications.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM