X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Ffanfix%2Freader%2FLocalReaderGroup.java;h=8667ffd4ac73f995c2f2b100038c9d843d71a243;hb=793f1071fae48daed3b545a03a286c85e527d244;hp=991aaee713eb357666bead680a20969621af21ce;hpb=b2612f9dcd0a37f4ec22fcabe55390280e06daf2;p=fanfix.git diff --git a/src/be/nikiroo/fanfix/reader/LocalReaderGroup.java b/src/be/nikiroo/fanfix/reader/LocalReaderGroup.java index 991aaee..8667ffd 100644 --- a/src/be/nikiroo/fanfix/reader/LocalReaderGroup.java +++ b/src/be/nikiroo/fanfix/reader/LocalReaderGroup.java @@ -27,6 +27,7 @@ public class LocalReaderGroup extends JPanel { private List stories; private List books; private JPanel pane; + private boolean words; // words or authors (secondary info on books) /** * Create a new {@link LocalReaderGroup}. @@ -78,7 +79,7 @@ public class LocalReaderGroup extends JPanel { */ public void setActionListener(BookActionListener action) { this.action = action; - refreshBooks(stories); + refreshBooks(stories, words); } /** @@ -86,9 +87,12 @@ public class LocalReaderGroup extends JPanel { * * @param stories * the stories + * @param seeWordcount + * TRUE to see word counts, FALSE to see authors */ - public void refreshBooks(List stories) { + public void refreshBooks(List stories, boolean seeWordcount) { this.stories = stories; + this.words = seeWordcount; books = new ArrayList(); invalidate(); @@ -98,7 +102,7 @@ public class LocalReaderGroup extends JPanel { if (stories != null) { for (MetaData meta : stories) { LocalReaderBook book = new LocalReaderBook(meta, - reader.isCached(meta.getLuid())); + reader.isCached(meta.getLuid()), seeWordcount); if (backgroundColor != null) { book.setBackground(backgroundColor); }