1
我创建组合框的列是这样的:SWT:如何在组合获得选择的值内嵌表
for (int i = 0; i < 5; i++) {
new TableItem(table_1, SWT.NONE);
}
TableItem[] itemsCombo = table_1.getItems();
for (int i = 0; i < 5; i++) {
TableEditor editor_1 = new TableEditor(table_1);
final CCombo comboXX = new CCombo(table_1, SWT.NONE);
comboXX.setItems(allValues);
editor_1.grabHorizontal = true;
comboXX.select(getIndexInLOV(choosenItemList.get(i), allValues));
editor_1.setEditor (comboXX, itemsCombo[i], 0);
}
然后在单击“确定”我想通过所有的组合框,并收集所有的值是什么他们存储。仍然没有找到如何可能。 谢谢!