Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable GWT ValueListBox?

Tags:

gwt

uibinder

ValueListBox doesn't implement HasEnabled interface, so I can't disable/enable it.

And although ListBox implements HasEnabled, method getListBox is private in ValueListBox. So I cannot get inner listBox, to disable it.

Anyone knows how to solve this problem? Thanks in advance.

like image 817
VMN Avatar asked May 04 '11 05:05

VMN


1 Answers

You can do the following:

DOM.setElementPropertyBoolean(valueListBoxObject.getElement(), "disabled", boolean)

Rest GWT should add a method, which isn't there for now.

like image 149
Amar Avatar answered Oct 13 '22 07:10

Amar