diff options
author | Matti Tahvonen <matti.tahvonen@itmill.com> | 2007-07-13 06:49:24 +0000 |
---|---|---|
committer | Matti Tahvonen <matti.tahvonen@itmill.com> | 2007-07-13 06:49:24 +0000 |
commit | 99b84bc0867400460b30a8cdd9f5525ff4ac4063 (patch) | |
tree | 3d5468be5360e0259aeae0a71f087705ca32e83c /src | |
parent | cedeabc17225ee4b32cf718486a3d391c7b20298 (diff) | |
download | vaadin-framework-99b84bc0867400460b30a8cdd9f5525ff4ac4063.tar.gz vaadin-framework-99b84bc0867400460b30a8cdd9f5525ff4ac4063.zip |
null check
svn changeset:1851/svn branch:trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/com/itmill/toolkit/terminal/gwt/client/ui/ITablePaging.java | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/com/itmill/toolkit/terminal/gwt/client/ui/ITablePaging.java b/src/com/itmill/toolkit/terminal/gwt/client/ui/ITablePaging.java index 9272bed6f1..b76026010e 100644 --- a/src/com/itmill/toolkit/terminal/gwt/client/ui/ITablePaging.java +++ b/src/com/itmill/toolkit/terminal/gwt/client/ui/ITablePaging.java @@ -95,16 +95,18 @@ public class ITablePaging extends Composite implements ITable, Paintable, ClickL this.firstRow = uidl.getIntAttribute("firstrow"); this.rows = uidl.getIntAttribute("rows"); - Set selectedKeys = uidl.getStringArrayVariableAsSet("selected"); - selectedRowKeys.clear(); - for(Iterator it = selectedKeys.iterator();it.hasNext();) - selectedRowKeys.add((String) it.next()); - if(uidl.hasAttribute("selectmode")) { if(uidl.getStringAttribute("selectmode").equals("multi")) selectMode = ITable.SELECT_MODE_MULTI; else selectMode = ITable.SELECT_MODE_SINGLE; + + if(uidl.hasAttribute("selected")) { + Set selectedKeys = uidl.getStringArrayVariableAsSet("selected"); + selectedRowKeys.clear(); + for(Iterator it = selectedKeys.iterator();it.hasNext();) + selectedRowKeys.add((String) it.next()); + } } if(uidl.hasVariable("sortascending")) |