Hi,
you can try this:
public void setEnabled(boolean enabled) {
DOM.setElementPropertyBoolean(getElement(), "disabled", !enabled);
if (enabled) {
this.removeStyleName("disabled");
} else {
this.addStyleName("disabled");
}
}
public boolean isEnabled() {
return !DOM.getElementPropertyBoolean(getElement(), "disabled");
}
// css
.disabled {
cursor: default ! important;
color: #888 ! important;
}
Extend DatePicker, add these two methods. The only problem is that you have
to check on every event if the DatePicker is enabled or not...
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
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.