List of usage examples for com.google.gwt.user.client DOM getIntStyleAttribute
public static native int getIntStyleAttribute(Element elem, String attr) ;
From source file:asquare.gwt.tk.client.util.DomUtil.java
License:Apache License
/** * Gets a CSS style property for the specified UIObject's element. * //from www .j av a2 s .c o m * @param uio a UIObject * @param name a CSS style property name, in "camelCase" * @return value an int value, or <code>null</code> if the property is not * set */ public static int getIntStyleAttribute(UIObject uio, String name) { return DOM.getIntStyleAttribute(uio.getElement(), name); }
From source file:asquare.gwt.tk.client.util.DomUtil.java
License:Apache License
/** * Gets a CSS style property for the specified UIObject's element. * /*from www .j a v a 2 s . c o m*/ * @param uio a UIObject * @param name a CSS style property name, in "camelCase" * @return value a screen pixel value, or <code>null</code> if the * property is not set */ public static int getPixelStyleAttribute(UIObject uio, String name) { /* * DOM.getIntStyleAttribute() uses parseInt(), * which parses until a non-digit is encountered */ return DOM.getIntStyleAttribute(uio.getElement(), name); }
From source file:com.google.livingstories.client.ui.StyleEffect.java
License:Apache License
public StyleEffect(Widget widget, String attribute, int newValue) { this.widget = widget; this.attribute = attribute; this.start = DOM.getIntStyleAttribute(widget.getElement(), attribute); this.delta = newValue - start; }
From source file:com.spaceapplications.vaadin.addon.eventtimeline.gwt.client.VEventTimelineBand.java
public int getHeight() { return DOM.getIntStyleAttribute(bandRoot, "height"); }
From source file:org.thechiselgroup.biomixer.client.dnd.windows.WindowPanel.java
License:Apache License
public int getZIndex() { return DOM.getIntStyleAttribute(getElement(), CSS.Z_INDEX); }