Revision: 9234
Author: [email protected]
Date: Mon Nov 15 15:07:03 2010
Log: Adds overflow-x and overflow-y to Style since they have at least partial support on all browsers.
Review at: http://gwt-code-reviews.appspot.com/1100801
Review by: jgw

http://code.google.com/p/google-web-toolkit/source/detail?r=9234

Modified:
 /trunk/user/src/com/google/gwt/dom/client/Style.java

=======================================
--- /trunk/user/src/com/google/gwt/dom/client/Style.java Wed Aug 11 09:22:23 2010 +++ /trunk/user/src/com/google/gwt/dom/client/Style.java Mon Nov 15 15:07:03 2010
@@ -663,6 +663,8 @@
   private static final String STYLE_PADDING_BOTTOM = "paddingBottom";
   private static final String STYLE_PADDING = "padding";
   private static final String STYLE_OVERFLOW = "overflow";
+  private static final String STYLE_OVERFLOW_X = "overflow-x";
+  private static final String STYLE_OVERFLOW_Y = "overflow-y";
   private static final String STYLE_OPACITY = "opacity";
   private static final String STYLE_MARGIN_TOP = "marginTop";
   private static final String STYLE_MARGIN_RIGHT = "marginRight";
@@ -877,6 +879,20 @@
     clearProperty(STYLE_OVERFLOW);
   }

+  /**
+   * Clears the overflow-x CSS property.
+   */
+  public final void clearOverflowX() {
+    clearProperty(STYLE_OVERFLOW_X);
+  }
+
+  /**
+   * Clears the overflow-y CSS property.
+   */
+  public final void clearOverflowY() {
+    clearProperty(STYLE_OVERFLOW_Y);
+  }
+
   /**
    * Clear the padding css property.
    */
@@ -1121,6 +1137,20 @@
   public final String getOverflow() {
     return getProperty(STYLE_OVERFLOW);
   }
+
+  /**
+   * Gets the overflow-x CSS property.
+   */
+  public final String getOverflowX() {
+    return getProperty(STYLE_OVERFLOW_X);
+  }
+
+  /**
+   * Gets the overflow-y CSS property.
+   */
+  public final String getOverflowY() {
+    return getProperty(STYLE_OVERFLOW_Y);
+  }

   /**
    * Get the padding css property.
@@ -1381,6 +1411,20 @@
   public final void setOverflow(Overflow value) {
     setProperty(STYLE_OVERFLOW, value.getCssName());
   }
+
+  /**
+   * Sets the overflow-x CSS property.
+   */
+  public final void setOverflowX(Overflow value) {
+    setProperty(STYLE_OVERFLOW_X, value.getCssName());
+  }
+
+  /**
+   * Sets the overflow-y CSS property.
+   */
+  public final void setOverflowY(Overflow value) {
+    setProperty(STYLE_OVERFLOW_Y, value.getCssName());
+  }

   /**
    * Set the padding css property.

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to