X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Ffanfix%2Freader%2Fui%2FGuiReaderBookInfo.java;h=3cef8cfddcd48232875e64be1ee5315abfac9616;hb=1387a30ab59dbf4071f2c5e5e0e08ca98c75b726;hp=f071be02e59d559991317a57c193ab8e04e2fb81;hpb=1feb447473d8176c3a218cc209c681fb41d468d1;p=fanfix.git diff --git a/src/be/nikiroo/fanfix/reader/ui/GuiReaderBookInfo.java b/src/be/nikiroo/fanfix/reader/ui/GuiReaderBookInfo.java index f071be0..3cef8cf 100644 --- a/src/be/nikiroo/fanfix/reader/ui/GuiReaderBookInfo.java +++ b/src/be/nikiroo/fanfix/reader/ui/GuiReaderBookInfo.java @@ -17,6 +17,12 @@ import be.nikiroo.utils.StringUtils; * @author niki */ public class GuiReaderBookInfo { + /** + * The type of {@link GuiReaderBook} (i.e., related to a story or to something else that + * can encompass stories). + * + * @author niki + */ public enum Type { /** A normal story, which can be "read". */ STORY, @@ -53,6 +59,15 @@ public class GuiReaderBookInfo { this.id = id; this.value = value; } + + /** + * The type of {@link GuiReaderBookInfo}. + * + * @return the type + */ + public Type getType() { + return type; + } /** * Get the main info to display for this book (a title, an author, a @@ -198,7 +213,7 @@ public class GuiReaderBookInfo { int size = 0; try { - size = lib.getListBySource(source).size(); + size = lib.getList().filter(source, null, null).size(); } catch (IOException e) { } @@ -228,7 +243,7 @@ public class GuiReaderBookInfo { int size = 0; try { - size = lib.getListByAuthor(author).size(); + size = lib.getList().filter(null, author, null).size(); } catch (IOException e) { }