爲什麼Vaadin ComboBox在執行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);
}
}