0
我尝试TabPanel和PopUp小部件,但都显示在浏览器中没有样式...我从互联网上下载的其他示例没有问题。这是怎么回事?GWT小部件没有显示样式
这就是我看到的一个例子......我错过了什么? 感谢
这是我的代码:
.....
Button search = Button.wrap(DOM.getElementById("search"));
search.setVisible(true);
search.addClickHandler(new ClickHandler(){
public void onClick(ClickEvent event) {
new MyPopup().show();
}
});
}
private static class MyPopup extends PopupPanel {
public MyPopup() {
// PopupPanel's constructor takes 'auto-hide' as its boolean parameter.
// If this is set, the panel closes itself automatically when the user
// clicks outside of it.
super(true);
// PopupPanel is a SimplePanel, so you have to set it's widget property to
// whatever you want its contents to be.
setWidget(new Label("Click outside of this popup to close it"));
}
}
谢谢!它解决了我的问题! – 2014-10-07 17:59:52