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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -