0
TabPanel 및 PopUp 위젯을 사용해 보았지만 스타일이 없으면 브라우저에 모두 표시됩니다 ... 인터넷에서 다운로드 한 다른 예제도 괜찮습니다. 무슨 일이야?GWT 위젯은 스타일없이 표시됩니다.
그게 내가 본 것의 예입니다 ... 내가 빠진 것이 무엇입니까? 덕분에 내 코드가 있어요
: 테마가하며 .gwt.xml 파일에 무엇을.....
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"));
}
}
감사합니다. 그것은 내 문제를 해결! –