Browse files

[inmethod] fixed issue #89 (DataGrid selection indication is broken)

Restore 7e8103d
  • Loading branch information...
1 parent 16b7063 commit cbbc8e820dd4bb514b82066e9e4d0e1c4fb0925b @martin-g martin-g committed Apr 5, 2012
View
9 ...thod-grid-parent/inmethod-grid/src/main/java/com/inmethod/grid/datagrid/DataGridBody.java
@@ -231,7 +231,7 @@ else if (klass.length() > 0)
klass = klass + " imxt-want-prelight imxt-grid-row";
- if (isItemSelected(getDefaultItemModel()))
+ if (isItemSelected((IModel<T>)getDefaultModel()))
{
klass = klass + " imxt-selected";
}
@@ -262,9 +262,4 @@ protected Item createItem(final long index, final IModel<T> itemModel)
return newItemFactory().newItem(i, itemModel);
}
}
-
- protected IModel<T> getDefaultItemModel()
- {
- return (IModel<T>)getDefaultModel();
- }
-}
+ }

0 comments on commit cbbc8e8

Please sign in to comment.