Make DateBox implement HasEnabled.

Review at http://gwt-code-reviews.appspot.com/1823803

Review by: mdempsky@google.com

git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@11257 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/src/com/google/gwt/user/datepicker/client/DateBox.java b/user/src/com/google/gwt/user/datepicker/client/DateBox.java
index fd45d72..8cd8fd4 100644
--- a/user/src/com/google/gwt/user/datepicker/client/DateBox.java
+++ b/user/src/com/google/gwt/user/datepicker/client/DateBox.java
@@ -38,6 +38,7 @@
 import com.google.gwt.event.shared.HandlerRegistration;
 import com.google.gwt.i18n.client.DateTimeFormat;
 import com.google.gwt.user.client.ui.Composite;
+import com.google.gwt.user.client.ui.HasEnabled;
 import com.google.gwt.user.client.ui.HasValue;
 import com.google.gwt.user.client.ui.PopupPanel;
 import com.google.gwt.user.client.ui.TextBox;
@@ -65,7 +66,7 @@
  * {@example com.google.gwt.examples.DateBoxExample}
  * </p>
  */
-public class DateBox extends Composite implements HasValue<Date>,
+public class DateBox extends Composite implements HasEnabled, HasValue<Date>,
     IsEditor<LeafValueEditor<Date>> {
   /**
    * Default {@link DateBox.Format} class. The date is first parsed using the
@@ -387,6 +388,13 @@
   }
 
   /**
+   * Returns true if the date box is enabled, false if not.
+   */
+  public boolean isEnabled() {
+    return box.isEnabled();
+  }
+
+  /**
    * Sets the date box's 'access key'. This key is used (in conjunction with a
    * browser-specific modifier key) to automatically focus the widget.
    *