public class DocumentStyleImpl
extends java.lang.Object
This implementation is used for all none MSIE browsers.
构造器和说明 |
---|
DocumentStyleImpl() |
限定符和类型 | 方法和说明 |
---|---|
protected static java.lang.String |
camelize(java.lang.String s)
Transforms a CSS property name to its javascript property name (font-size >> fontSize).
|
void |
clearOpacity(com.google.gwt.dom.client.Element element)
Removes the opacity attribute from the element's inline-style.
|
protected java.lang.String |
getComputedStyle(com.google.gwt.dom.client.Element elem,
java.lang.String name)
Returns the computed style from the DOM object.
|
java.lang.String |
getCurrentStyle(com.google.gwt.dom.client.Element elem,
java.lang.String name)
Returns the computed style of the given element.
|
java.lang.String |
getPropertyName(java.lang.String name)
Transforms the CSS style name to the name of the javascript style property.
|
protected java.lang.String |
hyphenize(java.lang.String name)
Hyphenizes the given string.
|
protected static java.lang.String camelize(java.lang.String s)
s
- the property namepublic void clearOpacity(com.google.gwt.dom.client.Element element)
element
- the DOM element to manipulatepublic java.lang.String getCurrentStyle(com.google.gwt.dom.client.Element elem, java.lang.String name)
elem
- the elementname
- the name of the CSS propertypublic java.lang.String getPropertyName(java.lang.String name)
name
- the name of the CSS propertyprotected java.lang.String hyphenize(java.lang.String name)
name
- the string to hyphenizeprotected java.lang.String getComputedStyle(com.google.gwt.dom.client.Element elem, java.lang.String name)
elem
- the element objectname
- name of the CSS property