Daniel Kurka has uploaded a new change for review.
https://gwt-review.googlesource.com/3639
Change subject: Remove deprecated use of isChecked in javadoc
......................................................................
Remove deprecated use of isChecked in javadoc
fixes issue 6232
Change-Id: I40b0fd568ac2032627ac1710bfb35f6f1d966183
---
M user/javadoc/com/google/gwt/examples/CheckBoxExample.java
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/user/javadoc/com/google/gwt/examples/CheckBoxExample.java
b/user/javadoc/com/google/gwt/examples/CheckBoxExample.java
index 9e5eab4..538b3d2 100644
--- a/user/javadoc/com/google/gwt/examples/CheckBoxExample.java
+++ b/user/javadoc/com/google/gwt/examples/CheckBoxExample.java
@@ -24,15 +24,17 @@
public class CheckBoxExample implements EntryPoint {
+ @Override
public void onModuleLoad() {
// Make a new check box, and select it by default.
CheckBox cb = new CheckBox("Foo");
- cb.setChecked(true);
+ cb.setValue(true);
// Hook up a handler to find out when it's clicked.
cb.addClickHandler(new ClickHandler() {
+ @Override
public void onClick(ClickEvent event) {
- boolean checked = ((CheckBox) event.getSource()).isChecked();
+ boolean checked = ((CheckBox) event.getSource()).getValue();
Window.alert("It is " + (checked ? "" : "not ") + "checked");
}
});
--
To view, visit https://gwt-review.googlesource.com/3639
To unsubscribe, visit https://gwt-review.googlesource.com/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I40b0fd568ac2032627ac1710bfb35f6f1d966183
Gerrit-PatchSet: 1
Gerrit-Project: gwt
Gerrit-Branch: master
Gerrit-Owner: Daniel Kurka <danku...@google.com>
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors
---
You received this message because you are subscribed to the Google Groups "GWT Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.