Sorry, obviousy what I mean in code sample (after implementing in my 
own ValueListBox HasEnabled interface) was:

@Override
public boolean isEnabled() {
return DOM.getElementPropertyBoolean(getElement(), "disabled");
}

@Override
public void setEnabled(boolean enabled) {
DOM.setElementPropertyBoolean(getElement(), "disabled", enabled);
}



Sábado, 19 de Janeiro de 2013 17:51:43 UTC, Luis Costa escreveu:
>
> 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.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/0p7jO04dJGQJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to