gwt - Enabling/Disabling MGWT Button -
i'm beginner gwt , mgwt. in project i've requirement have enable , disable mgwt botton. direct method not given in current version of mgwt. i've seen in gwt button.
com.google.gwt.user.client.ui.button b = new com.google.gwt.user.client.ui.button(); b.setenable(boolean);
but not given in mgwt. please me,how can achieve above functionality using css/something else
i not mgwt guy. , there must better solution. can try low level element manipulation:
button mgwtbutton; mgwtbutton.getelement().setattribute("disabled", "disabled");
if take solution better prepare later custombutton
extends mgwt button additional setenabled(boolean enabled)
method have better api.
Comments
Post a Comment