From 5e89b2f1344d5840869265e5bf5544d830b4407b Mon Sep 17 00:00:00 2001 From: Joonas Lehtinen Date: Wed, 13 Jun 2007 11:57:55 +0000 Subject: [PATCH] Ported TkTable from GWT 1.4 to 1.3 svn changeset:1692/svn branch:trunk --- .../itmill/toolkit/terminal/gwt/client/ui/TkTable.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/com/itmill/toolkit/terminal/gwt/client/ui/TkTable.java b/src/com/itmill/toolkit/terminal/gwt/client/ui/TkTable.java index 9c6b90157c..d788c266c7 100644 --- a/src/com/itmill/toolkit/terminal/gwt/client/ui/TkTable.java +++ b/src/com/itmill/toolkit/terminal/gwt/client/ui/TkTable.java @@ -90,7 +90,7 @@ public class TkTable extends Composite implements Paintable { updateBody(rowData); if(!colWidthsInitialized) { - DeferredCommand.addCommand(new Command() { + DeferredCommand.add(new Command() { public void execute() { initSize(); updateSpacers(); @@ -114,7 +114,7 @@ public class TkTable extends Composite implements Paintable { 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); } } @@ -161,7 +161,7 @@ public class TkTable extends Composite implements Paintable { } 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) { @@ -190,8 +190,8 @@ public class TkTable extends Composite implements Paintable { 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); } -- 2.39.5