X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;ds=sidebyside;f=src%2Fbe%2Fnikiroo%2Ffanfix%2Freader%2Fui%2FGuiReaderGroup.java;h=160dfb4d6557859d3195d7a9cf8d031a2ab6a2ed;hb=8590da196b2eca1f6d69e157cf7b122f6d5c6ef7;hp=efacb1f5f66c74a2282eba79e4b0debddcc98f72;hpb=fb1ffdd032bb81bfa606a686f371038f2466c6af;p=fanfix.git diff --git a/src/be/nikiroo/fanfix/reader/ui/GuiReaderGroup.java b/src/be/nikiroo/fanfix/reader/ui/GuiReaderGroup.java index efacb1f..160dfb4 100644 --- a/src/be/nikiroo/fanfix/reader/ui/GuiReaderGroup.java +++ b/src/be/nikiroo/fanfix/reader/ui/GuiReaderGroup.java @@ -84,12 +84,24 @@ public class GuiReaderGroup extends JPanel { * Refresh the list of {@link GuiReaderBook}s displayed in the control. * * @param stories - * the stories + * the new list of stories * @param seeWordcount * TRUE to see word counts, FALSE to see authors */ public void refreshBooks(List infos, boolean seeWordcount) { this.infos = infos; + refreshBooks(seeWordcount); + } + + /** + * Refresh the list of {@link GuiReaderBook}s displayed in the control. + *

+ * Will not change the current stories. + * + * @param seeWordcount + * TRUE to see word counts, FALSE to see authors + */ + public void refreshBooks(boolean seeWordcount) { this.words = seeWordcount; books = new ArrayList();