Add more warnings source to 1.6) and fix warnings
[fanfix.git] / src / be / nikiroo / fanfix / reader / GuiReaderGroup.java
index 2161de563aec2e25265c3ed66636a06a242167c4..041e8bc4d680eee9ffc153a2226bb0ea10dff550 100644 (file)
@@ -33,15 +33,14 @@ public class GuiReaderGroup extends JPanel {
         * Create a new {@link GuiReaderGroup}.
         * 
         * @param reader
-        *            the {@link GuiReaderBook} used to probe some information
-        *            about the stories
+        *            the {@link GuiReaderBook} used to probe some information about
+        *            the stories
         * @param title
         *            the title of this group
         * @param backgroundColor
         *            the background colour to use (or NULL for default)
         */
-       public GuiReaderGroup(GuiReader reader, String title,
-                       Color backgroundColor) {
+       public GuiReaderGroup(GuiReader reader, String title, Color backgroundColor) {
                this.reader = reader;
                this.backgroundColor = backgroundColor;
 
@@ -101,7 +100,7 @@ public class GuiReaderGroup extends JPanel {
 
                if (stories != null) {
                        for (MetaData meta : stories) {
-                               GuiReaderBook book = new GuiReaderBook(meta,
+                               GuiReaderBook book = new GuiReaderBook(reader, meta,
                                                reader.isCached(meta.getLuid()), seeWordcount);
                                if (backgroundColor != null) {
                                        book.setBackground(backgroundColor);
@@ -110,16 +109,18 @@ public class GuiReaderGroup extends JPanel {
                                books.add(book);
 
                                book.addActionListener(new BookActionListener() {
+                                       @Override
                                        public void select(GuiReaderBook book) {
                                                for (GuiReaderBook abook : books) {
                                                        abook.setSelected(abook == book);
                                                }
                                        }
 
-                                       public void popupRequested(GuiReaderBook book,
-                                                       MouseEvent e) {
+                                       @Override
+                                       public void popupRequested(GuiReaderBook book, MouseEvent e) {
                                        }
 
+                                       @Override
                                        public void action(GuiReaderBook book) {
                                        }
                                });