public void searchBook() {
   // System.out.println("Books ");
   DataAccess access = new DataAccessFacade();
   Book b = access.searchBook(txtSearch.getText());
   List<Book> bookList = new ArrayList<Book>();
   bookList.add(b);
   if (b != null) {
     // System.out.println(b.getIsbn());
     // tblDataView.setItems(FXCollections.observableArrayList(b));
     isbn.setCellValueFactory(new PropertyValueFactory<>("isbn"));
     title.setCellValueFactory(new PropertyValueFactory<>("title"));
     tblDataView.getItems().setAll(bookList);
   }
 }
예제 #2
0
 @Override
 public Book searchBook(String isbn) {
   DataAccess da = new DataAccessFacade();
   return da.searchBook(isbn);
 }