Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
list = new List(composite, SWT.V_SCROLL | SWT.BORDER | SWT.SINGLE);
すべてのアイテムの選択を解除できるように、SWTリストを定義するにはどうすればよいですか?アイテムをまったく選択する必要がないというシナリオがあります...
動作しているように見える唯一のSWTフラグはSINGLEとMULTIです
ありがとう。
選択性のないリストを作成するための規定はないと思います。表示専用ウィジェットの場合は、代わりにTableまたは複数行を使用する必要がありTextます。
Table
Text
SelectionListenerと呼ばれるを追加できdeselectAll()ます。それは少し安っぽいですが、おそらくうまくいくでしょう。
SelectionListener
deselectAll()