コード例 #1
0
 @SuppressWarnings("unchecked")
 @Override
 public Lote getRowData(String rowKey) {
   // TODO Auto-generated method stub
   Long loteId = Long.parseLong(rowKey);
   List<Lote> list = (List<Lote>) getWrappedData();
   for (Lote lote : list) {
     if (lote.getId().equals(loteId)) {
       return lote;
     }
   }
   return null;
   // return super.getRowData(rowKey);
 }
コード例 #2
0
 @Override
 public Object getRowKey(Lote object) {
   // TODO Auto-generated method stub
   return object.getId();
 }