From d97f8641d3650a145709e0701301cd228f77a0ad Mon Sep 17 00:00:00 2001 From: Manolo Carrasco Date: Mon, 2 May 2011 15:06:01 +0000 Subject: Revert Float class --- .../com/google/gwt/query/client/css/Float.java | 28 ---------------------- .../google/gwt/query/client/css/FloatProperty.java | 1 + .../com/google/gwt/query/client/GQueryCssTest.java | 2 +- 3 files changed, 2 insertions(+), 29 deletions(-) delete mode 100644 gwtquery-core/src/main/java/com/google/gwt/query/client/css/Float.java diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/Float.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/Float.java deleted file mode 100644 index cf74a88b..00000000 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/Float.java +++ /dev/null @@ -1,28 +0,0 @@ -package com.google.gwt.query.client.css; - -import com.google.gwt.dom.client.Style.HasCssName; - -/** - * Enum for the float property. - */ -public enum Float implements HasCssName { - LEFT { - @Override - public String getCssName() { - return "left"; - } - }, - RIGHT { - @Override - public String getCssName() { - return "right"; - } - }, - NONE { - @Override - public String getCssName() { - return "none"; - } - }; - public abstract String getCssName(); -} \ No newline at end of file diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/FloatProperty.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/FloatProperty.java index 33cbfcfa..5bdc6ad1 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/FloatProperty.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/FloatProperty.java @@ -16,6 +16,7 @@ package com.google.gwt.query.client.css; import com.google.gwt.dom.client.Style; +import com.google.gwt.dom.client.Style.Float; /** * This property specifies whether a box should float to the left, right, or not diff --git a/gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryCssTest.java b/gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryCssTest.java index 30137d87..6717393b 100644 --- a/gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryCssTest.java +++ b/gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryCssTest.java @@ -50,7 +50,7 @@ import com.google.gwt.query.client.css.TextAlignProperty.TextAlign; import com.google.gwt.query.client.css.TextTransformProperty.TextTransform; import com.google.gwt.query.client.css.UnicodeBidiProperty.UnicodeBidi; import com.google.gwt.query.client.css.UriValue; -import com.google.gwt.query.client.css.Float; +import com.google.gwt.dom.client.Style.Float; import com.google.gwt.query.client.css.WhiteSpaceProperty.WhiteSpace; import com.google.gwt.user.client.ui.HTML; -- cgit v1.2.3