【发布时间】:2012-05-03 15:11:31
【问题描述】:
为什么在执行 setReadOnly(true) 时 Vaadin ComboBox 变得不可见?
截图
正常
隐形
源代码
import java.util.List;
import com.vaadin.ui.ComboBox;
public class PropertyComboBox extends ComboBox
{
public PropertyComboBox(List<String> properties)
{
super();
for(String property: properties) {this.addItem(property);}
this.setImmediate(true);
this.setMultiSelect(false);
this.setNewItemsAllowed(false);
this.setInputPrompt("Property");
this.setReadOnly(true);
}
}
【问题讨论】:
标签: combobox vaadin readonly invisible