]> source.dussan.org Git - gwtquery.git/commitdiff
Add Float class in order to make gquery compatible with 2.0.0
authorManolo Carrasco <manolo@apache.org>
Mon, 2 May 2011 14:13:02 +0000 (14:13 +0000)
committerManolo Carrasco <manolo@apache.org>
Mon, 2 May 2011 14:13:02 +0000 (14:13 +0000)
gwtquery-core/src/main/java/com/google/gwt/query/client/css/Float.java [new file with mode: 0644]

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
new file mode 100644 (file)
index 0000000..cf74a88
--- /dev/null
@@ -0,0 +1,28 @@
+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