[英]How to make a ComboBoxCellEditor read-only?
I have a ComboBoxCellEditor
, on which users should only be able to select the items within it, but not to edit them in the combo box. 我有一个
ComboBoxCellEditor
,用户应该只能在其中选择项目,但不能在组合框中编辑它们。
Is there s.th like this? 有这样的吗?
cellEditor.setReadOnly(true);
Surely creating it with: 当然创建它:
new ComboBoxCellEditor(parent, items, SWT.READ_ONLY)
will do the trick? 会做的伎俩?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.