|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.terminal.gwt.client.ComputedStyle
public class ComputedStyle
| Field Summary | |
|---|---|
protected com.google.gwt.core.client.JavaScriptObject |
computedStyle
|
| Constructor Summary | |
|---|---|
ComputedStyle(com.google.gwt.user.client.Element elem)
Gets this element's computed style object which can be used to gather information about the current state of the rendered node. |
|
| Method Summary | |
|---|---|
int[] |
getBorder()
Get current border values from the DOM. |
int |
getIntProperty(String name)
|
int[] |
getMargin()
Get current margin values from the DOM. |
int[] |
getPadding()
Get current padding values from the DOM. |
String |
getProperty(String name)
|
static Integer |
parseInt(String value)
Takes a String value e.g. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final com.google.gwt.core.client.JavaScriptObject computedStyle
| Constructor Detail |
|---|
public ComputedStyle(com.google.gwt.user.client.Element elem)
Note that this method is expensive. Wherever possible, reuse the returned object.
elem - the element| Method Detail |
|---|
public final String getProperty(String name)
name - name of the CSS property in camelCase
public final int getIntProperty(String name)
public final int[] getMargin()
public final int[] getPadding()
public final int[] getBorder()
public static Integer parseInt(String value)
String - a value starting with a number
null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||