1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-04 18:29:23 +02:00

library auto-sorting

This commit is contained in:
Nikolay Pultsin 2011-07-17 14:49:53 +01:00
parent 31075d08a0
commit f79aaeb132
10 changed files with 97 additions and 60 deletions

View file

@ -25,12 +25,23 @@ public class BookTree extends LibraryTree {
public final Book Book;
private final boolean myShowAuthors;
BookTree(Book book, boolean showAuthors) {
Book = book;
myShowAuthors = showAuthors;
}
BookTree(LibraryTree parent, Book book, boolean showAuthors) {
super(parent);
Book = book;
myShowAuthors = showAuthors;
}
BookTree(LibraryTree parent, Book book, boolean showAuthors, int position) {
super(parent, position);
Book = book;
myShowAuthors = showAuthors;
}
@Override
public String getName() {
return Book.getTitle();