c*****t 发帖数: 1879 | 1 【 以下文字转载自 Programming 讨论区 】
【 原文由 coconut 所发表 】
Is it possible to synchronize the states (selection and enabled)
for a MenuItem and a button (ToolItem or Button) using listeners
only?
In Swing, it is possible to do so with two listeners by hooking
up ItemListener and PropertyChangeListener, but I don't seem to
be able to find a way to do so in SWT. I know JFace has it,
but I am writing a SWT XUL...
Any helps? Thanks. |
|