简体   繁体   English

在SWT中使用组合框的WidgetProperties.SingleSelectionIndex()

[英]Use of WidgetProperties.SingleSelectionIndex() of Combo box in SWT

Can anyone explain the use of the WidgetProperties.singleSelectionIndex().observe(combo) ? 谁能解释WidgetProperties.singleSelectionIndex().observe(combo)的用法?

I have read the API documentation for it. 我已经阅读了API文档。 But I could not get a clear idea about it. 但是我对此不清楚。

This observes the value of the Combo getSelectionIndex value (and set with select(index) ). 这将观察Combo getSelectionIndex值的值(并使用select(index) )。 This is the index of the currently item in the Combo items. 这是组合项中当前项的索引。 You would only use this with a read only Combo. 您只能将其与只读Combo一起使用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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