updateBody(rowData);
if(!colWidthsInitialized) {
- DeferredCommand.addCommand(new Command() {
+ DeferredCommand.add(new Command() {
public void execute() {
initSize();
updateSpacers();
int colIndex = getColIndexByKey(cid);
if(colIndex > -1)
setHeaderText(colIndex, col.getStringAttribute("caption"));
- DOM.setElementProperty(tHead.getFlexCellFormatter().getElement(0, colIndex), "cid", cid);
+ DOM.setAttribute(tHead.getFlexCellFormatter().getElement(0, colIndex), "cid", cid);
}
}
}
private String getColKeyByIndex(int index) {
- return DOM.getElementProperty(tHead.getCellFormatter().getElement(0, index), "cid");
+ return DOM.getAttribute(tHead.getCellFormatter().getElement(0, index), "cid");
}
public void setHeaderText(int colIndex, String text) {
for (int i = 0; i < cols; i++) {
Element hCell = hf.getElement(0, i);
Element bCell = bf.getElement(1, i);
- int hw = DOM.getElementPropertyInt(hCell, "offsetWidth");
- int cw = DOM.getElementPropertyInt(bCell, "offsetWidth");
+ int hw = DOM.getIntAttribute(hCell, "offsetWidth");
+ int cw = DOM.getIntAttribute(bCell, "offsetWidth");
setColWidth(i , hw > cw ? hw : cw);
}