Some fixes: output types, libraries, remote
[nikiroo-utils.git] / src / be / nikiroo / fanfix / reader / GuiReaderGroup.java
index 2161de563aec2e25265c3ed66636a06a242167c4..a087c4c12302851cbb4fe680de1e9a7aca42d0d0 100644 (file)
@@ -7,6 +7,7 @@ import java.awt.event.MouseEvent;
 import java.util.ArrayList;
 import java.util.List;
 
+import javax.management.RuntimeErrorException;
 import javax.swing.JLabel;
 import javax.swing.JPanel;
 
@@ -33,15 +34,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 +101,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 +110,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) {
                                        }
                                });