Example usage for com.google.gwt.user.client DOM getIntAttribute

List of usage examples for com.google.gwt.user.client DOM getIntAttribute

Introduction

In this page you can find the example usage for com.google.gwt.user.client DOM getIntAttribute.

Prototype

@Deprecated
public static int getIntAttribute(Element elem, String attr) 

Source Link

Document

Gets an integer property on a given element.

Usage

From source file:com.gwt.components.client.Canvas.java

License:Open Source License

public int getWidth() {
    return DOM.getIntAttribute(canvas, "width");
}

From source file:com.gwt.components.client.Canvas.java

License:Open Source License

public int getHeight() {
    return DOM.getIntAttribute(canvas, "height");
}

From source file:org.iucn.sis.client.ui.TreeItem.java

License:Apache License

int getContentHeight() {
    return DOM.getIntAttribute(itemTable, "offsetHeight");
}

From source file:org.iucn.sis.client.ui.TreeItem.java

License:Apache License

int getTreeTop() {
    TreeItem item = this;
    int ret = 0;//from ww w  .j av  a 2s  . c o m

    while (item != null) {
        ret += DOM.getIntAttribute(item.getElement(), "offsetTop");
        item = item.getParentItem();
    }

    return ret;
}