Author: maksimkaszynski
Date: 2008-03-14 14:28:46 -0400 (Fri, 14 Mar 2008)
New Revision: 6834
Modified:
trunk/samples/scrollableDataTableDemo/src/main/java/org/richfaces/demo/datagrid/bean/ChannelDataModel2.java
Log:
Fixed generic
Modified:
trunk/samples/scrollableDataTableDemo/src/main/java/org/richfaces/demo/datagrid/bean/ChannelDataModel2.java
===================================================================
---
trunk/samples/scrollableDataTableDemo/src/main/java/org/richfaces/demo/datagrid/bean/ChannelDataModel2.java 2008-03-14
18:25:18 UTC (rev 6833)
+++
trunk/samples/scrollableDataTableDemo/src/main/java/org/richfaces/demo/datagrid/bean/ChannelDataModel2.java 2008-03-14
18:28:46 UTC (rev 6834)
@@ -17,7 +17,7 @@
* @author Maksim Kaszynski
*
*/
-public class ChannelDataModel2 extends ScrollableTableDataModel {
+public class ChannelDataModel2 extends ScrollableTableDataModel<Issue> {
private final Log log = LogFactory.getLog(ChannelDataModel2.class);
@@ -31,7 +31,7 @@
* @see org.richfaces.model.GridDataModel#getObjectById(java.io.Serializable)
*/
@Override
- public Object getObjectById(Object id) {
+ public Issue getObjectById(Object id) {
if (log.isTraceEnabled()) {
log.trace(id);
@@ -55,7 +55,7 @@
}
@Override
- public Object getId(Object o) {
+ public Object getId(Issue o) {
Issue issue = (Issue)o;
return issue.getKey();
}
Show replies by date