Exemplo n.º 1
0
 public Object getValueAt(int row, int col) {
   if (books_.size() == 0) {
     return null;
   }
   if (row >= books_.size()) {
     return null;
   }
   ATBookWrapper book = (ATBookWrapper) books_.get(row);
   switch (col) {
     case statsIdx_:
       return null;
     case titleIdx_:
       return book.getTitle();
     case authorsIdx_:
       return book.getAuthors();
     case ratingIdx_:
       return book.getRating();
     case favorIdx_:
       return book.getMatchFromString(keywords_); // TODO
   }
   return null;
 }