diff options
author | Joonas Lehtinen <joonas.lehtinen@itmill.com> | 2007-06-13 11:57:55 +0000 |
---|---|---|
committer | Joonas Lehtinen <joonas.lehtinen@itmill.com> | 2007-06-13 11:57:55 +0000 |
commit | 5e89b2f1344d5840869265e5bf5544d830b4407b (patch) | |
tree | ee346ea53c3bfa809e5b0b61c54f5424c002ab1f /src | |
parent | 81c8744bc5063260d7705c2210f355d09264a9c2 (diff) | |
download | vaadin-framework-5e89b2f1344d5840869265e5bf5544d830b4407b.tar.gz vaadin-framework-5e89b2f1344d5840869265e5bf5544d830b4407b.zip |
Ported TkTable from GWT 1.4 to 1.3
svn changeset:1692/svn branch:trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/com/itmill/toolkit/terminal/gwt/client/ui/TkTable.java | 10 |
1 files 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); } |