*/
public abstract class AbstractCssProperty<T extends HasCssName> implements
TakeCssValue<T> {
+ private String cssName;
+
+ protected AbstractCssProperty(String cssName){
+ this.cssName = cssName;
+ }
public String get(Style s) {
return s.getProperty(getCssName());
}
- public abstract String getCssName();
+ public String getCssName(){
+ return cssName;
+ }
public void set(Style s, T value) {
s.setProperty(getCssName(), value.getCssName());
public abstract String getCssName();
}
+
private static final String CSS_PROPERTY = "backgroundAttachment";
private static final String FIXED_VALUE = "fixed";
CSS.BACKGROUND_ATTACHMENT = new BackgroundAttachmentProperty();
}
- private BackgroundAttachmentProperty() {}
-
- public String getCssName() {
- return CSS_PROPERTY;
+ private BackgroundAttachmentProperty() {
+ super(CSS_PROPERTY);
}
+
}
}
private BackgroundColorProperty() {
- }
-
- public String getCssName() {
- return CSS_PROPERTY;
+ super(CSS_PROPERTY);
}
}
}
private BackgroundImageProperty() {
- }
-
- public String getCssName() {
- return CSS_PROPERTY;
+ super(CSS_PROPERTY);
}
}
}
private BackgroundPositionProperty() {
- }
-
- public String getCssName() {
- return CSS_PROPERTY;
+ super(CSS_PROPERTY);
}
}
}
private BackgroundRepeatProperty() {
- }
-
- public String getCssName() {
- return CSS_PROPERTY;
+ super(CSS_PROPERTY);
}
}
--- /dev/null
+/*
+ * Copyright 2011, The gwtquery team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package com.google.gwt.query.client.css;
+
+import com.google.gwt.dom.client.Style.HasCssName;
+
+/**
+ * This property describes the color of a border.
+ */
+public class BorderCollapseProperty extends
+ AbstractCssProperty<BorderCollapseProperty.BorderCollapse> {
+
+ public static enum BorderCollapse implements HasCssName {
+ /**
+ * Borders are collapsed into a single border when possible (border-spacing
+ * and empty-cells properties will be ignored)
+ */
+ COLLAPSE,
+ /**
+ * Borders are detached (border-spacing and empty-cells properties will not
+ * be ignored).
+ */
+ SEPARATE;
+
+ public String getCssName() {
+ return name().toLowerCase();
+ }
+ }
+
+ private static final String CSS_PROPERTY = "borderCollapse";
+
+ public static void init() {
+ CSS.BORDER_COLLAPSE = new BorderCollapseProperty();
+
+ }
+
+ private BorderCollapseProperty() {
+ super(CSS_PROPERTY);
+ }
+}
package com.google.gwt.query.client.css;
/**
- * This property describes the foreground color of an element's text content.
+ * This property describes the color of a border.
*/
public class BorderColorProperty extends AbstractCssProperty<RGBColor> {
BORDER_RIGHT_COLOR_PROPERTY);
CSS.BORDER_TOP_COLOR = new BorderColorProperty(BORDER_TOP_COLOR_PROPERTY);
}
-
- private String cssName;
-
+
private BorderColorProperty(String value) {
- this.cssName = value;
- }
-
- public String getCssName() {
- return cssName;
+ super(value);
}
}
import com.google.gwt.query.client.css.BorderWidthProperty.LineWidth;
/**
+ * The border shorthand property sets all the border properties in one
+ * declaration.
*
- *
*/
public class BorderProperty implements
CssShorthandProperty3<LineWidth, LineStyle, RGBColor> {
- private static final String CSS_PROPERTY = "border";
+ private static final String BORDER_BOTTOM_PROPERTY = "borderBottom";
+ private static final String BORDER_PROPERTY = "border";
+ private static final String BORDER_LEFT_PROPERTY = "borderLeft";
+ private static final String BORDER_RIGHT_PROPERTY = "borderRight";
+ private static final String BORDER_TOP_PROPERTY = "borderTop";
static void init() {
- CSS.BORDER = new BorderProperty();
+ CSS.BORDER = new BorderProperty(BORDER_PROPERTY);
+ CSS.BORDER_BOTTOM = new BorderProperty(BORDER_BOTTOM_PROPERTY);
+ CSS.BORDER_TOP = new BorderProperty(BORDER_TOP_PROPERTY);
+ CSS.BORDER_RIGHT = new BorderProperty(BORDER_RIGHT_PROPERTY);
+ CSS.BORDER_LEFT = new BorderProperty(BORDER_LEFT_PROPERTY);
+
BorderColorProperty.init();
BorderStyleProperty.init();
BorderWidthProperty.init();
}
- private BorderProperty() {
+ private String cssProperty;
+
+ private BorderProperty(String property) {
+ cssProperty = property;
}
public String get(Style s) {
- return s.getProperty(CSS_PROPERTY);
+ return s.getProperty(cssProperty);
}
public String getCssName() {
- return CSS_PROPERTY;
+ return cssProperty;
}
public void set(Style s, LineWidth borderWidth, LineStyle borderStyle,
RGBColor borderColor) {
String value = notNull(borderWidth) + notNull(borderStyle)
+ notNull(borderColor).trim();
- s.setProperty(CSS_PROPERTY, value);
+ s.setProperty(cssProperty, value);
}
private String notNull(HasCssName value) {
--- /dev/null
+/*
+ * Copyright 2011, The gwtquery team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package com.google.gwt.query.client.css;
+
+import com.google.gwt.dom.client.Style.HasCssName;
+
+/**
+ * This property describes the color of a border.
+ */
+public class BorderSpacingProperty extends
+ AbstractCssProperty<BorderSpacingProperty.BorderSpacing> {
+
+ public static class BorderSpacing implements HasCssName {
+
+ private Length verticalSpacing;
+ private Length horizontalSpacing;
+
+ public BorderSpacing(Length spacing) {
+ this(spacing, spacing);
+ }
+
+ public BorderSpacing(Length horizontalSpacing, Length verticalSpacing) {
+ assert horizontalSpacing != null : "horizontal spacing cannot be null";
+ assert verticalSpacing != null : "vertical spacing cannot be null";
+
+ this.verticalSpacing = verticalSpacing;
+ this.horizontalSpacing = horizontalSpacing;
+ }
+
+
+ public String getCssName() {
+ return horizontalSpacing.getCssName()+" "+verticalSpacing.getCssName();
+ }
+ }
+
+ private static final String CSS_PROPERTY = "borderSpacing";
+
+ public static void init() {
+ CSS.BORDER_SPACING = new BorderSpacingProperty();
+
+ }
+
+ private BorderSpacingProperty() {
+ super(CSS_PROPERTY);
+ }
+}
CSS.BORDER_TOP_STYLE = new BorderStyleProperty(BORDER_TOP_STYLE_PROPERTY);
}
- private String cssName;
-
private BorderStyleProperty(String value) {
- this.cssName = value;
+ super(value);
}
- public String getCssName() {
- return cssName;
- }
}
CSS.BORDER_TOP_WIDTH = new BorderWidthProperty(BORDER_TOP_WIDTH_PROPERTY);
}
- private String cssName;
-
private BorderWidthProperty(String value) {
- this.cssName = value;
- }
-
- public String getCssName() {
- return cssName;
+ super(value);
}
public void set(Style s, Length p) {
- s.setProperty(cssName, p.getCssName());
+ s.setProperty(getCssName(), p.getCssName());
}
}
public static BackgroundRepeatProperty BACKGROUND_REPEAT;
public static BorderProperty BORDER;
-
+
+ public static BorderProperty BORDER_BOTTOM;
+
public static BorderColorProperty BORDER_BOTTOM_COLOR;
-
+
public static BorderStyleProperty BORDER_BOTTOM_STYLE;
-
+
public static BorderWidthProperty BORDER_BOTTOM_WIDTH;
+ public static BorderCollapseProperty BORDER_COLLAPSE;
+
public static BorderColorProperty BORDER_COLOR;
+ public static BorderProperty BORDER_LEFT;
+
public static BorderColorProperty BORDER_LEFT_COLOR;
public static BorderStyleProperty BORDER_LEFT_STYLE;
public static BorderWidthProperty BORDER_LEFT_WIDTH;
+ public static BorderProperty BORDER_RIGHT;
+
public static BorderColorProperty BORDER_RIGHT_COLOR;
public static BorderStyleProperty BORDER_RIGHT_STYLE;
public static BorderWidthProperty BORDER_RIGHT_WIDTH;
+ public static BorderSpacingProperty BORDER_SPACING;
+
public static BorderStyleProperty BORDER_STYLE;
+ public static BorderProperty BORDER_TOP;
+
public static BorderColorProperty BORDER_TOP_COLOR;
public static BorderStyleProperty BORDER_TOP_STYLE;
public static BorderWidthProperty BORDER_TOP_WIDTH;
public static BorderWidthProperty BORDER_WIDTH;
-
/**
* For absolutely positioned elements, the bottom property sets the bottom
* edge of an element to a unit above/below the bottom edge of its containing
* For static positioned elements, the bottom property has no effect.
*/
public static EdgePositionProperty BOTTOM;
+ public static CaptionSideProperty CAPTION_SIDE;
/**
* The clear property specifies which sides of an element where other floating
* elements are not allowed.
*/
public static ClearProperty CLEAR;
+
/**
* The clip property lets you specify the dimensions of an absolutely
* positioned element that should be visible, and the element is clipped into
* The clip property does not work if the overflow property is set to visible.
*/
public static ClipProperty CLIP;
+
/**
* This property describes the foreground color of an element's text content.
*/
*/
public static CursorProperty CURSOR;
+ public static DirectionProperty DIRECTION;
+
/**
* This property specifies the mechanism by which elements are rendered.
*/
*/
public static EdgePositionProperty LEFT;
+ public static LetterSpacingProperty LETTER_SPACING;
+
+ public static LineHeightProperty LINE_HEIGHT;
+
public static ListStyleProperty LIST_STYLE;
public static ListStyleImageProperty LIST_STYLE_IMAGE;
public static MarginProperty MARGIN_TOP;
+ public static HeightProperty MAX_HEIGHT;
+
+ public static WidthProperty MAX_WIDTH;
+
+ public static HeightProperty MIN_HEIGHT;
+
+ public static WidthProperty MIN_WIDTH;
+
/**
* An outline is a line that is drawn around elements (outside the borders) to
* make the element "stand out".
*/
public static TextAlignProperty TEXT_ALIGN;
+ public static TextDecorationProperty TEXT_DECORATION;
+
+ public static TextIdentProperty TEXT_IDENT;
+
+ public static TextTransformProperty TEXT_TRANSFORM;
+
/**
* For absolutely positioned elements, the top property sets the top edge of
* an element to a unit above/below the top edge of its containing element.
*/
public static VisibilityProperty VISIBILITY;
+ public static WhiteSpaceProperty WHITE_SPACE;
+
/**
* This property specifies the content width of boxes generated by block-level
* and replaced elements.
*/
public static WidthProperty WIDTH;
+ public static WordSpacingProperty WORD_SPACING;
+
+ public static ZIndexProperty ZINDEX;
+
static {
BackgroundProperty.init();
BorderProperty.init();
+ BorderCollapseProperty.init();
+ BorderSpacingProperty.init();
+ CaptionSideProperty.init();
ColorProperty.init();
CursorProperty.init();
ClearProperty.init();
FontWeightProperty.init();
FontSizeProperty.init();
HeightProperty.init();
+ LetterSpacingProperty.init();
+ LineHeightProperty.init();
ListStyleProperty.init();
MarginProperty.init();
OutlineProperty.init();
PaddingProperty.init();
PositionProperty.init();
TextAlignProperty.init();
+ TextDecorationProperty.init();
+ TextIdentProperty.init();
+ TextTransformProperty.init();
VerticalAlignProperty.init();
VisibilityProperty.init();
WidthProperty.init();
+ WhiteSpaceProperty.init();
+ WordSpacingProperty.init();
+ ZIndexProperty.init();
}
--- /dev/null
+/*
+ * Copyright 2011, The gwtquery team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package com.google.gwt.query.client.css;
+
+import com.google.gwt.dom.client.Style.HasCssName;
+
+/**
+ * This property describes how inline content of a block is aligned.
+ */
+public class CaptionSideProperty extends
+ AbstractCssProperty<CaptionSideProperty.CaptionSide> {
+
+ public enum CaptionSide implements HasCssName {
+ /**
+ * Puts the caption above the table
+ */
+ TOP,
+ /**
+ * Puts the caption below the table
+ */
+ BOTTOM;
+
+ public String getCssName() {
+ return name().toLowerCase();
+ };
+ }
+
+ private static final String CSS_PROPERTY = "captionSide";
+
+ public static void init() {
+ CSS.CAPTION_SIDE = new CaptionSideProperty();
+ }
+
+ private CaptionSideProperty() {
+ super(CSS_PROPERTY);
+ }
+
+}
}
private ClearProperty() {
- }
-
- public String getCssName() {
- return CSS_PROPERTY;
+ super(CSS_PROPERTY);
}
}
}
private ClipProperty() {
- }
-
- public String getCssName() {
- return CSS_PROPERTY;
+ super(CSS_PROPERTY);
}
}
}
private ColorProperty() {
- }
-
- public String getCssName() {
- return CSS_PROPERTY;
+ super(CSS_PROPERTY);
}
}
--- /dev/null
+/*
+ * Copyright 2011, The gwtquery team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package com.google.gwt.query.client.css;
+
+import com.google.gwt.dom.client.Style.HasCssName;
+
+/**
+ * Some css property take simply number as value.
+ */
+public class CssNumber implements HasCssName {
+
+ private String value;
+
+ public CssNumber(String value) {
+ this.value = value;
+ }
+
+ public CssNumber(int value) {
+ this(""+value);
+ }
+
+ public String getCssName() {
+ return value;
+ }
+
+}
}
private CursorProperty() {
- }
-
- public String getCssName() {
- return CSS_PROPERTY;
+ super(CSS_PROPERTY);
}
}
--- /dev/null
+/*
+ * Copyright 2011, The gwtquery team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package com.google.gwt.query.client.css;
+
+import com.google.gwt.dom.client.Style.HasCssName;
+
+/**
+ * This property defines the text direction/writing direction
+ */
+public class DirectionProperty extends
+ AbstractCssProperty<DirectionProperty.Direction> {
+
+ public static enum Direction implements HasCssName {
+
+ LTR {
+ public String getCssName() {
+ return "ltr";
+ };
+ },
+ RTL {
+ public String getCssName() {
+ return "rtl";
+ };
+ },
+ INHERIT {
+ public String getCssName() {
+ return "inherit";
+ };
+ };
+
+ public abstract String getCssName();
+
+ }
+
+ private static final String CSS_PROPERTY = "direction";
+
+ public static void init() {
+ CSS.DIRECTION = new DirectionProperty();
+ }
+
+ private DirectionProperty() {
+ super(CSS_PROPERTY);
+ }
+}
}
private DisplayProperty() {
- }
-
- public String getCssName() {
- return CSS_PROPERTY;
+ super(CSS_PROPERTY);
}
}
CSS.TOP = new EdgePositionProperty("top");
}
- private String cssName;
-
private EdgePositionProperty(String value) {
- this.cssName = value;
- }
-
- public String getCssName() {
- return cssName;
+ super(value);
}
}
}
private FloatProperty() {
- }
-
- public String getCssName() {
- return CSS_PROPERTY;
+ super(CSS_PROPERTY);
}
@Override
}
private FontSizeProperty() {
- }
-
- public String getCssName() {
- return CSS_PROPERTY;
+ super(CSS_PROPERTY);
}
/**
}
private FontStyleProperty() {
- }
-
- public String getCssName() {
- return CSS_PROPERTY;
+ super(CSS_PROPERTY);
}
}
}
private FontVariantProperty() {
- }
-
- public String getCssName() {
- return CSS_PROPERTY;
+ super(CSS_PROPERTY);
}
}
}
private FontWeightProperty() {
- }
-
- public String getCssName() {
- return CSS_PROPERTY;
+ super(CSS_PROPERTY);
}
}
package com.google.gwt.query.client.css;
/**
- * This property specifies the content height of boxes generated by block-level,
- * inline-block and replaced elements.
- *
- * This property does not apply to non-replaced inline-level elements. See the
- * section on computing heights and margins for non-replaced inline elements for
- * the rules used instead.
+ * all height css properties : max-height, min-height, height
*/
public class HeightProperty extends AbstractCssProperty<Length> {
- private static final String CSS_PROPERTY = "height";
+ private static final String HEIGHT_PROPERTY = "height";
+ private static final String MAX_HEIGHT_PROPERTY = "maxHeight";
+ private static final String MIN_HEIGHT_PROPERTY = "minHeight";
public static void init() {
- CSS.HEIGHT = new HeightProperty();
+ CSS.HEIGHT = new HeightProperty(HEIGHT_PROPERTY);
+ CSS.MAX_HEIGHT = new HeightProperty(MAX_HEIGHT_PROPERTY);
+ CSS.MIN_HEIGHT = new HeightProperty(MIN_HEIGHT_PROPERTY);
}
- private HeightProperty() {
+
+ private HeightProperty(String cssName) {
+ super(cssName);
}
- public String getCssName() {
- return CSS_PROPERTY;
- }
}
--- /dev/null
+/*
+ * Copyright 2011, The gwtquery team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package com.google.gwt.query.client.css;
+
+/**
+ * all height css properties : max-height, min-height, height
+ */
+public class LetterSpacingProperty extends AbstractCssProperty<Length> {
+
+ private static final String CSS_PROPERTY = "letterSpacing";
+
+ public static void init() {
+ CSS.LETTER_SPACING = new LetterSpacingProperty();
+ }
+
+ private LetterSpacingProperty() {
+ super(CSS_PROPERTY);
+ }
+
+}
--- /dev/null
+/*
+ * Copyright 2011, The gwtquery team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package com.google.gwt.query.client.css;
+
+import com.google.gwt.dom.client.Style;
+
+/**
+ * all height css properties : max-height, min-height, height
+ */
+public class LineHeightProperty extends AbstractCssProperty<CssNumber> implements TakesLength {
+
+ private static final String CSS_PROPERTY = "lineHeight";
+
+ public static void init() {
+ CSS.LINE_HEIGHT = new LineHeightProperty();
+ }
+
+ private LineHeightProperty() {
+ super(CSS_PROPERTY);
+ }
+
+ public void set(Style s, Length p) {
+ s.setProperty(CSS_PROPERTY, p.getCssName());
+
+ }
+
+}
}
private ListStyleImageProperty() {
- }
-
- public String getCssName() {
- return CSS_PROPERTY;
+ super(CSS_PROPERTY);
}
}
}
private ListStylePositionProperty() {
- }
-
- public String getCssName() {
- return CSS_PROPERTY;
+ super(CSS_PROPERTY);
}
}
}
private ListStyleTypeProperty() {
- }
-
- public String getCssName() {
- return CSS_PROPERTY;
+ super(CSS_PROPERTY);
}
}
CSS.MARGIN_BOTTOM = new MarginProperty(MARGIN_BOTTOM_PROPERTY);
}
- private String cssName;
-
private MarginProperty(String cssName) {
- this.cssName = cssName;
- }
-
- public String getCssName() {
- return cssName;
+ super(cssName);
}
}
private OutlineColorProperty() {
- }
-
- public String getCssName() {
- return CSS_PROPERTY;
+ super(CSS_PROPERTY);
}
}
private OutlineStyleProperty() {
- }
-
- public String getCssName() {
- return CSS_PROPERTY;
+ super(CSS_PROPERTY);
}
}
}
private OutlineWidthProperty() {
- }
-
- public String getCssName() {
- return CSS_PROPERTY;
+ super(CSS_PROPERTY);
}
public void set(Style s, Length p) {
}
private OverflowProperty() {
- }
-
- public String getCssName() {
- return CSS_PROPERTY;
+ super(CSS_PROPERTY);
}
}
CSS.PADDING_BOTTOM = new PaddingProperty(PADDING_BOTTOM_PROPERTY);
}
- private String cssName;
-
private PaddingProperty(String cssName) {
- this.cssName = cssName;
- }
-
- public String getCssName() {
- return cssName;
+ super(cssName);
}
}
}
private PositionProperty() {
+ super(CSS_PROPERTY);
}
- public String getCssName() {
- return CSS_PROPERTY;
- }
}
}
private TextAlignProperty() {
- }
-
- public String getCssName() {
- return CSS_PROPERTY;
+ super(CSS_PROPERTY);
}
}
--- /dev/null
+/*
+ * Copyright 2011, The gwtquery team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package com.google.gwt.query.client.css;
+
+import com.google.gwt.dom.client.Style.TextDecoration;
+
+/**
+ * This property describes how inline content of a block is aligned.
+ */
+public class TextDecorationProperty extends
+ AbstractCssProperty<TextDecoration> {
+
+
+ private static final String CSS_PROPERTY = "textDecoration";
+
+
+ public static void init() {
+ CSS.TEXT_DECORATION= new TextDecorationProperty();
+ }
+
+ private TextDecorationProperty() {
+ super(CSS_PROPERTY);
+ }
+
+}
--- /dev/null
+/*
+ * Copyright 2011, The gwtquery team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package com.google.gwt.query.client.css;
+
+
+/**
+ * This property describes how inline content of a block is aligned.
+ */
+public class TextIdentProperty extends
+ AbstractCssProperty<Length> {
+
+
+ private static final String CSS_PROPERTY = "textIdent";
+
+
+ public static void init() {
+ CSS.TEXT_IDENT= new TextIdentProperty();
+ }
+
+ private TextIdentProperty() {
+ super(CSS_PROPERTY);
+ }
+
+}
--- /dev/null
+/*
+ * Copyright 2011, The gwtquery team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package com.google.gwt.query.client.css;
+
+import com.google.gwt.dom.client.Style.HasCssName;
+
+/**
+ * This property describes how inline content of a block is aligned.
+ */
+public class TextTransformProperty extends
+ AbstractCssProperty<TextTransformProperty.TextTransform> {
+
+ public enum TextTransform implements HasCssName{
+ /**
+ * Transforms the first character of each word to uppercase
+ */
+ CAPITALIZE,
+ /**
+ * Transforms all characters to uppercase
+ */
+ UPPERCASE,
+ /**
+ * Transforms all characters to lowercase
+ */
+ LOWERCASE;
+
+ public String getCssName() {
+ return name().toLowerCase();
+ };
+ }
+
+ private static final String CSS_PROPERTY = "textTransform";
+
+
+ public static void init() {
+ CSS.TEXT_TRANSFORM= new TextTransformProperty();
+ }
+
+ private TextTransformProperty() {
+ super(CSS_PROPERTY);
+ }
+
+}
}
private VerticalAlignProperty() {
- }
-
- public String getCssName() {
- return CSS_PROPERTY;
+ super(CSS_PROPERTY);
}
public void set(Style s, Length p) {
}
private VisibilityProperty() {
+ super(CSS_PROPERTY);
}
- public String getCssName() {
- return CSS_PROPERTY;
- }
}
--- /dev/null
+/*
+ * Copyright 2011, The gwtquery team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package com.google.gwt.query.client.css;
+
+import com.google.gwt.dom.client.Style.HasCssName;
+
+/**
+ * This property describes how inline content of a block is aligned.
+ */
+public class WhiteSpaceProperty extends
+ AbstractCssProperty<WhiteSpaceProperty.WhiteSpace> {
+
+ public enum WhiteSpace implements HasCssName {
+ /**
+ * Sequences of whitespace will collapse into a single whitespace. Text will
+ * wrap when necessary.
+ */
+ NORMAL,
+ /**
+ * Sequences of whitespace will collapse into a single whitespace. Text will
+ * never wrap to the next line. The text continues on the same line until a <br />
+ * tag is encountered
+ */
+ NOWRAP,
+ /**
+ * Whitespace is preserved by the browser. Text will only wrap on line
+ * breaks Acts like the
+ *
+ * <pre> tag in HTML
+ */
+ PRE,
+ /**
+ * Sequences of whitespace will collapse into a single whitespace. Text will
+ * wrap when necessary, and on line breaks
+ */
+ PRE_LINE,
+ /**
+ * Whitespace is preserved by the browser. Text will wrap when necessary,
+ * and on line breaks
+ */
+ PRE_WRAP;
+
+ public String getCssName() {
+ return name().toLowerCase().replace('_', '-');
+ };
+ }
+
+ private static final String CSS_PROPERTY = "whiteSpace";
+
+ public static void init() {
+ CSS.WHITE_SPACE = new WhiteSpaceProperty();
+ }
+
+ private WhiteSpaceProperty() {
+ super(CSS_PROPERTY);
+ }
+
+}
*/
public class WidthProperty extends AbstractCssProperty<Length> {
- private static final String CSS_PROPERTY = "width";
+ private static final String WIDTH_PROPERTY = "width";
+ private static final String MAX_WIDTH_PROPERTY = "maxWidth";
+ private static final String MIN_WIDTH_PROPERTY = "minWidth";
public static void init() {
- CSS.WIDTH = new WidthProperty();
+ CSS.WIDTH = new WidthProperty(WIDTH_PROPERTY);
+ CSS.MAX_WIDTH = new WidthProperty(MAX_WIDTH_PROPERTY);
+ CSS.MIN_WIDTH = new WidthProperty(MIN_WIDTH_PROPERTY);
}
-
- private WidthProperty() {
- }
-
- public String getCssName() {
- return CSS_PROPERTY;
+
+ private WidthProperty(String cssName) {
+ super(cssName);
}
}
--- /dev/null
+/*
+ * Copyright 2011, The gwtquery team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package com.google.gwt.query.client.css;
+
+/**
+ * all height css properties : max-height, min-height, height
+ */
+public class WordSpacingProperty extends AbstractCssProperty<Length> {
+
+ private static final String CSS_PROPERTY = "wordSpacing";
+
+ public static void init() {
+ CSS.WORD_SPACING = new WordSpacingProperty();
+ }
+
+ private WordSpacingProperty() {
+ super(CSS_PROPERTY);
+ }
+
+}
--- /dev/null
+/*
+ * Copyright 2011, The gwtquery team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package com.google.gwt.query.client.css;
+
+import com.google.gwt.dom.client.Style;
+
+/**
+ * The z-index property specifies the stack order of an element.
+ *
+ * An element with greater stack order is always in front of an element with a
+ * lower stack order.
+ *
+ * The z-index property only works on positioned elements (position:absolute,
+ * position:relative, or position:fixed).
+ */
+public class ZIndexProperty extends AbstractCssProperty<CssNumber> {
+
+ private static final String CSS_PROPERTY = "zIndex";
+
+ public static void init() {
+ CSS.ZINDEX = new ZIndexProperty();
+ }
+
+ private ZIndexProperty() {
+ super(CSS_PROPERTY);
+ }
+
+ @Override
+ public String get(Style s) {
+ return getZIndex(s);
+ }
+
+ /**
+ * See GWT issue 5548
+ * http://code.google.com/p/google-web-toolkit/issues/detail?id=5548
+ */
+ private native String getZIndex(Style s) /*-{
+ //force to return a string
+ return ""+s["zIndex"];
+ }-*/;
+
+}
import com.google.gwt.dom.client.Style.ListStyleType;
import com.google.gwt.dom.client.Style.Overflow;
import com.google.gwt.dom.client.Style.Position;
+import com.google.gwt.dom.client.Style.TextDecoration;
import com.google.gwt.dom.client.Style.Unit;
import com.google.gwt.dom.client.Style.VerticalAlign;
import com.google.gwt.dom.client.Style.Visibility;
import com.google.gwt.junit.client.GWTTestCase;
import com.google.gwt.query.client.css.CSS;
+import com.google.gwt.query.client.css.CssNumber;
import com.google.gwt.query.client.css.ImageValue;
import com.google.gwt.query.client.css.Length;
import com.google.gwt.query.client.css.RGBColor;
import com.google.gwt.query.client.css.BackgroundAttachmentProperty.BackgroundAttachment;
import com.google.gwt.query.client.css.BackgroundPositionProperty.BackgroundPosition;
import com.google.gwt.query.client.css.BackgroundRepeatProperty.BackgroundRepeat;
+import com.google.gwt.query.client.css.BorderCollapseProperty.BorderCollapse;
+import com.google.gwt.query.client.css.BorderSpacingProperty.BorderSpacing;
import com.google.gwt.query.client.css.BorderStyleProperty.LineStyle;
import com.google.gwt.query.client.css.BorderWidthProperty.LineWidth;
+import com.google.gwt.query.client.css.CaptionSideProperty.CaptionSide;
import com.google.gwt.query.client.css.ClearProperty.Clear;
import com.google.gwt.query.client.css.ClipProperty.Shape;
import com.google.gwt.query.client.css.FontSizeProperty.FontSize;
import com.google.gwt.query.client.css.FontVariantProperty.FontVariant;
import com.google.gwt.query.client.css.ListStylePositionProperty.ListStylePosition;
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.WhiteSpaceProperty.WhiteSpace;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.RootPanel;
assertEquals("repeat-x", $("#test").css("backgroundRepeat"));
assertEquals("repeat-x", $("#test").css(CSS.BACKGROUND_REPEAT));
}
+
+ public void testBorderCollapseProperty() {
+
+ $(e).html("<table id='test'><tr><td>Content<td></tr></table>");
+
+ $("#test").css(CSS.BORDER_COLLAPSE, BorderCollapse.COLLAPSE);
+ assertEquals("collapse", $("#test").css("borderCollapse"));
+ assertEquals("collapse", $("#test").css(CSS.BORDER_COLLAPSE));
+
+ $("#test").css(CSS.BORDER_COLLAPSE, BorderCollapse.SEPARATE);
+
+ assertEquals("separate", $("#test").css("borderCollapse"));
+ assertEquals("separate", $("#test").css(CSS.BORDER_COLLAPSE));
+ }
+
+ public void testCaptionSideProperty() {
+
+ $(e).html("<table id='test'><tr><td>Content<td></tr></table>");
+
+ $("#test").css(CSS.CAPTION_SIDE, CaptionSide.BOTTOM);
+ assertEquals("bottom", $("#test").css("captionSide"));
+ assertEquals("bottom", $("#test").css(CSS.CAPTION_SIDE));
+
+ }
+
+ public void testBorderSpacingProperty() {
+
+ $(e).html("<table id='test'><tr><td>Content<td></tr></table>");
+
+ $("#test").css(CSS.BORDER_SPACING, new BorderSpacing(Length.px(15)));
+
+ assertEquals("15px 15px", $("#test").css("borderSpacing"));
+ assertEquals("15px 15px", $("#test").css(CSS.BORDER_SPACING));
+
+ $("#test").css(CSS.BORDER_SPACING, new BorderSpacing(Length.px(10), Length.em(20)));
+
+ assertEquals("10px 20em", $("#test").css("borderSpacing"));
+ assertEquals("10px 20em", $("#test").css(CSS.BORDER_SPACING));
+ }
public void testBorderColorProperty() {
$(e).html("<div id='test'>Content</div>");
LineStyle.SOLID, RGBColor.rgb("#000000"));
assertEquals("15px solid #000000", $("#test").css("border"));
assertEquals("15px solid #000000", $("#test").css(CSS.BORDER));
+
+ $("#test").css(CSS.BORDER_TOP, LineWidth.MEDIUM, LineStyle.SOLID,
+ RGBColor.GRAY);
+ assertEquals("medium solid gray", $("#test").css("borderTop"));
+ assertEquals("medium solid gray", $("#test").css(CSS.BORDER_TOP));
+
+ $("#test").css(CSS.BORDER_BOTTOM, LineWidth.THIN, LineStyle.DOUBLE,
+ RGBColor.FUSCHIA);
+ assertEquals("thin double fuschia", $("#test").css("borderBottom"));
+ assertEquals("thin double fuschia", $("#test").css(CSS.BORDER_BOTTOM));
+
+ $("#test").css(CSS.BORDER_LEFT, LineWidth.THIN, LineStyle.SOLID,
+ RGBColor.BLACK);
+ assertEquals("thin solid black", $("#test").css("borderLeft"));
+ assertEquals("thin solid black", $("#test").css(CSS.BORDER_LEFT));
+
+ $("#test").css(CSS.BORDER_RIGHT, LineWidth.MEDIUM, LineStyle.DASHED,
+ RGBColor.GRAY);
+ assertEquals("medium dashed gray", $("#test").css("borderRight"));
+ assertEquals("medium dashed gray", $("#test").css(CSS.BORDER_RIGHT));
}
}
+ public void testClearProperty() {
+
+ $(e).html("<div id='test'>Content</div>");
+
+ $("#test").css(CSS.CLEAR, Clear.BOTH);
+ assertEquals("both", $("#test").css("clear"));
+ assertEquals("both", $("#test").css(CSS.CLEAR));
+
+ $("#test").css(CSS.CLEAR, Clear.LEFT);
+ assertEquals("left", $("#test").css(CSS.CLEAR));
+
+ $("#test").css(CSS.CLEAR, Clear.RIGHT);
+ assertEquals("right", $("#test").css(CSS.CLEAR));
+
+ $("#test").css(CSS.CLEAR, Clear.NONE);
+ assertEquals("none", $("#test").css(CSS.CLEAR));
+
+ }
+
+ public void testClipProperty() {
+
+ $(e).html("<div id='test'>Content</div>");
+
+ $("#test").css(CSS.CLIP, Shape.rect(0, 10, 10, 0));
+ assertEquals("rect(0px,10px,10px,0px)", $("#test").css("clip"));
+ assertEquals("rect(0px,10px,10px,0px)", $("#test").css(CSS.CLIP));
+ }
+
public void testColorProperty() {
$(e).html("<div id='test'>Content</div>");
assertEquals("rgb(35,45,55)", $("#test").css(CSS.COLOR));
}
-
+
public void testColorValue() {
$(e).html("<div id='test'>Content</div>");
assertEquals("rgb(35,45,55)", $("#test").css(CSS.COLOR));
}
-
+
public void testCursorProperty() {
$(e).html("<div id='test'>Content</div>");
assertEquals("wait", $("#test").css(CSS.CURSOR));
}
-
- public void testClearProperty() {
-
- $(e).html("<div id='test'>Content</div>");
-
- $("#test").css(CSS.CLEAR, Clear.BOTH);
- assertEquals("both", $("#test").css("clear"));
- assertEquals("both", $("#test").css(CSS.CLEAR));
-
- $("#test").css(CSS.CLEAR, Clear.LEFT);
- assertEquals("left", $("#test").css(CSS.CLEAR));
-
- $("#test").css(CSS.CLEAR, Clear.RIGHT);
- assertEquals("right", $("#test").css(CSS.CLEAR));
-
- $("#test").css(CSS.CLEAR, Clear.NONE);
- assertEquals("none", $("#test").css(CSS.CLEAR));
-
- }
-
- public void testClipProperty() {
-
- $(e).html("<div id='test'>Content</div>");
-
- $("#test").css(CSS.CLIP, Shape.rect(0, 10, 10, 0));
- assertEquals("rect(0px,10px,10px,0px)", $("#test").css("clip"));
- assertEquals("rect(0px,10px,10px,0px)", $("#test").css(CSS.CLIP));
- }
public void testDisplayProperty() {
}
- public void testHeightProperty() {
+ public void testHeightProperties() {
$(e).html("<div id='test'>Content</div>");
assertEquals("10px", $("#test").css("height"));
assertEquals("10px", $("#test").css(CSS.HEIGHT));
+
+ $("#test").css(CSS.MAX_HEIGHT, Length.px(15));
+
+ assertEquals("15px", $("#test").css("maxHeight"));
+ assertEquals("15px", $("#test").css(CSS.MAX_HEIGHT));
+
+ $("#test").css(CSS.MIN_HEIGHT, Length.px(5));
+
+ assertEquals("5px", $("#test").css("minHeight"));
+ assertEquals("5px", $("#test").css(CSS.MIN_HEIGHT));
}
public void testLengthValue() {
}
+ public void testLetterSpacingProperty() {
+
+ $(e).html("<div id='test'>Content</div>");
+
+ $("#test").css(CSS.LETTER_SPACING, Length.px(15));
+ assertEquals("15px", $("#test").css("letterSpacing"));
+ assertEquals("15px", $("#test").css(CSS.LETTER_SPACING));
+
+ }
+
+ public void testLineHeightProperty() {
+
+ $(e).html("<div id='test'>Content</div>");
+
+ $("#test").css(CSS.LINE_HEIGHT, Length.px(15));
+ assertEquals("15px", $("#test").css("lineHeight"));
+ assertEquals("15px", $("#test").css(CSS.LINE_HEIGHT));
+
+ $("#test").css(CSS.LINE_HEIGHT, new CssNumber(2));
+ assertEquals("2", $("#test").css("lineHeight"));
+ assertEquals("2", $("#test").css(CSS.LINE_HEIGHT));
+
+
+ }
+
public void testListStyleImageProperty() {
$(e).html("<ul id='test'><li>Content</li></ul>");
assertEquals("url('arrow.jpg')", $("#test").css(CSS.LIST_STYLE_IMAGE));
}
-
+
public void testListStylePositionProperty() {
$(e).html("<ul id='test'><li>Content</li></ul>");
assertEquals("outside", $("#test").css(CSS.LIST_STYLE_POSITION));
}
-
- public void testListStyleTypeProperty() {
-
- $(e).html("<ul id='test'><li>Content</li></ul>");
-
- $("#test").css(CSS.LIST_STYLE_TYPE, ListStyleType.DISC);
- assertEquals("disc", $("#test").css("listStyleType"));
- assertEquals("disc", $("#test").css(CSS.LIST_STYLE_TYPE));
-
- }
public void testListStyleProperty() {
}
+ public void testListStyleTypeProperty() {
+
+ $(e).html("<ul id='test'><li>Content</li></ul>");
+
+ $("#test").css(CSS.LIST_STYLE_TYPE, ListStyleType.DISC);
+ assertEquals("disc", $("#test").css("listStyleType"));
+ assertEquals("disc", $("#test").css(CSS.LIST_STYLE_TYPE));
+
+ }
+
public void testMarginProperty() {
$(e).html("<div id='test'>Content</div>");
assertEquals("50px", $("#test").css(CSS.MARGIN_RIGHT));
}
+
public void testOutlineProperty(){
$(e).html("<div id='test'>Content</div>");
}
-
public void testPaddingProperty() {
$(e).html("<div id='test'>Content</div>");
}
+ public void testTextDecorationProperty() {
+
+ $(e).html("<div id='test'>Content</div>");
+
+ $("#test").css(CSS.TEXT_DECORATION, TextDecoration.LINE_THROUGH);
+ assertEquals("line-through", $("#test").css("textDecoration"));
+ assertEquals("line-through", $("#test").css(CSS.TEXT_DECORATION));
+
+ }
+
+ public void testTextIdentProperty() {
+
+ $(e).html("<div id='test'>Content</div>");
+
+ $("#test").css(CSS.TEXT_IDENT, Length.px(15));
+ assertEquals("15px", $("#test").css("textIdent"));
+ assertEquals("15px", $("#test").css(CSS.TEXT_IDENT));
+
+ }
+
+ public void testTextTransformProperty() {
+
+ $(e).html("<div id='test'>Content</div>");
+
+ $("#test").css(CSS.TEXT_TRANSFORM, TextTransform.UPPERCASE);
+ assertEquals("uppercase", $("#test").css("textTransform"));
+ assertEquals("uppercase", $("#test").css(CSS.TEXT_TRANSFORM));
+
+ $("#test").css(CSS.TEXT_TRANSFORM, TextTransform.LOWERCASE);
+ assertEquals("lowercase", $("#test").css("textTransform"));
+
+ $("#test").css(CSS.TEXT_TRANSFORM, TextTransform.CAPITALIZE);
+ assertEquals("capitalize", $("#test").css("textTransform"));
+ }
+
public void testVerticalAlignProperty() {
$(e).html("<div id='test'>Content</div>");
}
+ public void testWhiteSpaceProperty() {
+
+ $(e).html("<div id='test'>Content</div>");
+
+ $("#test").css(CSS.WHITE_SPACE, WhiteSpace.NORMAL);
+ assertEquals("normal", $("#test").css("whiteSpace"));
+ assertEquals("normal", $("#test").css(CSS.WHITE_SPACE));
+
+ $("#test").css(CSS.WHITE_SPACE, WhiteSpace.NOWRAP);
+ assertEquals("nowrap", $("#test").css(CSS.WHITE_SPACE));
+
+ $("#test").css(CSS.WHITE_SPACE, WhiteSpace.PRE);
+ assertEquals("pre", $("#test").css(CSS.WHITE_SPACE));
+
+ $("#test").css(CSS.WHITE_SPACE, WhiteSpace.PRE_LINE);
+ assertEquals("pre-line", $("#test").css(CSS.WHITE_SPACE));
+
+ $("#test").css(CSS.WHITE_SPACE, WhiteSpace.PRE_WRAP);
+ assertEquals("pre-wrap", $("#test").css(CSS.WHITE_SPACE));
+
+
+ }
+
public void testWidthProperty() {
$(e).html("<div id='test'>Content</div>");
$("#test").css(CSS.WIDTH, Length.px(20));
assertEquals("20px", $("#test").css("width"));
assertEquals("20px", $("#test").css(CSS.WIDTH));
+
+ $("#test").css(CSS.MIN_WIDTH, Length.px(10));
+ assertEquals("10px", $("#test").css("minWidth"));
+ assertEquals("10px", $("#test").css(CSS.MIN_WIDTH));
+
+ $("#test").css(CSS.MAX_WIDTH, Length.px(30));
+ assertEquals("30px", $("#test").css("maxWidth"));
+ assertEquals("30px", $("#test").css(CSS.MAX_WIDTH));
+
+ }
+
+ public void testWordSpacingProperty() {
+
+ $(e).html("<div id='test'>Content</div>");
+
+ $("#test").css(CSS.WORD_SPACING, Length.pt(2));
+ assertEquals("2pt", $("#test").css("wordSpacing"));
+ assertEquals("2pt", $("#test").css(CSS.WORD_SPACING));
+
+ }
+
+ public void testZIndexProperty() {
+
+ $(e).html("<div id='test'>Content</div>");
+
+ $("#test").css(CSS.ZINDEX, new CssNumber(1000));
+ assertEquals("1000", $("#test").css("zIndex"));
+ assertEquals("1000", $("#test").css(CSS.ZINDEX));
}
+
}