1
J'essaie de faire en sorte que le bouton de soumission de mon PopupPanel masque le panneau, mais je n'arrive pas à le faire fonctionner correctement. Je suis en mesure d'avoir un bouton sur mon entrypoint montrer le panneau, mais je ne peux pas sembler obtenir le PopupPanel à cacher.Comment masquer un PopupPanel GWT avec un clickhandler?
submitLinkPopup.btnSubmitLink.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
if(if conditions go here){
CallbackMethods.addLink(callback conditions go here);
//this is where I want to hide the panel
}
else{
Window.alert("Error: Fields cannot be empty");
}
}
});
ahh, il ne fonctionnait pas parce que j'appelle la classe statiquement, cela a fonctionné grâce – Michael