February 2014
Beginner
1248 pages
62h 25m
English
Class ImageTextCell (Fig. 26.16) defines the custom ListView cell layout for this version of the Cover Viewer app. You can add this class to your project, by right clicking the project, selecting New > Java Class..., specifying ImageTextCell as the Class Name and clicking Finish. The class extends ListCell<Book> because it defines a customized presentation of a Book in a ListView cell. Method update (lines 13–45) creates the custom presentation. This method is called by the ListView’s cell factory when a ListView cell is required—that is, when the ListView is first displayed and when ListView cells are about to scroll onto the screen. The method receives the Book to display and a boolean indicating ...
Read now
Unlock full access