【发布时间】:2011-10-06 12:09:01
【问题描述】:
我用cb.setDescription("text") 试过了,但是没有效果。所以我在网上搜索但找不到任何关于它为什么不起作用的信息?
代码如下:
ComboBox cb = new ComboBox();
cb.setSizeUndefined();`
cb.setInputPrompt("xyz");
cb.addItem("x");
cb.addItem("y");
cb.setItemCaption("x", "xxx");
cb.setItemCaption("y", "yyy");
cb.setInvalidAllowed(false);
cb.setNullSelectionAllowed(false);
cb.setNewItemsAllowed(false);
cb.setStyleName('xyz');
cb.select("x");
cb.setEnabled(false);
cb.setDescription("tooltiptext");
layout.addComponent(cb);
【问题讨论】: