Hi all,
I'm using GWT 2.5 and I'm wondering if there's an easy way to enabled / disabled ValueListBox, after a careful look:
DateBox, TextBox implements com.google.gwt.user.client.ui.HasEnabled but in other hand ValueListBox dosent
I could extend com.google.gwt.user.client.ui.ValueListBox and implement com.google.gwt.user.client.ui.HasEnabled doing:
@Override
public void setReadOnly(boolean readOnly) {
DOM.setElementPropertyBoolean(getElement(), "disabled", readOnly);
}
@Override
public boolean isReadOnly() {
return DOM.getElementPropertyBoolean(getElement(), "disabled");
}
But is there realy necessary?
Is there a easy and logic way of doing this (disabled enabled)?
Many thanks,
Luis.