git://git.nikiroo.be
/
fanfix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Renames and jDo
[fanfix.git]
/
src
/
be
/
nikiroo
/
fanfix
/
reader
/
GuiReaderGroup.java
diff --git
a/src/be/nikiroo/fanfix/reader/LocalReaderGroup.java
b/src/be/nikiroo/fanfix/reader/GuiReaderGroup.java
similarity index 79%
rename from
src/be/nikiroo/fanfix/reader/LocalReaderGroup.java
rename to
src/be/nikiroo/fanfix/reader/GuiReaderGroup.java
index c5755460f15a77afd56c9f9117f59159b1f41c00..2161de563aec2e25265c3ed66636a06a242167c4 100644
(file)
--- a/
src/be/nikiroo/fanfix/reader/LocalReaderGroup.java
+++ b/
src/be/nikiroo/fanfix/reader/GuiReaderGroup.java
@@
-11,36
+11,36
@@
import javax.swing.JLabel;
import javax.swing.JPanel;
import be.nikiroo.fanfix.data.MetaData;
import javax.swing.JPanel;
import be.nikiroo.fanfix.data.MetaData;
-import be.nikiroo.fanfix.reader.
Local
ReaderBook.BookActionListener;
+import be.nikiroo.fanfix.reader.
Gui
ReaderBook.BookActionListener;
import be.nikiroo.utils.ui.WrapLayout;
/**
import be.nikiroo.utils.ui.WrapLayout;
/**
- * A group of {@link
Local
ReaderBook}s for display.
+ * A group of {@link
Gui
ReaderBook}s for display.
*
* @author niki
*/
*
* @author niki
*/
-public class
Local
ReaderGroup extends JPanel {
+public class
Gui
ReaderGroup extends JPanel {
private static final long serialVersionUID = 1L;
private BookActionListener action;
private Color backgroundColor;
private static final long serialVersionUID = 1L;
private BookActionListener action;
private Color backgroundColor;
- private
Local
Reader reader;
+ private
Gui
Reader reader;
private List<MetaData> stories;
private List<MetaData> stories;
- private List<
Local
ReaderBook> books;
+ private List<
Gui
ReaderBook> books;
private JPanel pane;
private boolean words; // words or authors (secondary info on books)
/**
private JPanel pane;
private boolean words; // words or authors (secondary info on books)
/**
- * Create a new {@link
Local
ReaderGroup}.
+ * Create a new {@link
Gui
ReaderGroup}.
*
* @param reader
*
* @param reader
- * the {@link
Local
ReaderBook} used to probe some information
+ * the {@link
Gui
ReaderBook} 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)
*/
* about the stories
* @param title
* the title of this group
* @param backgroundColor
* the background colour to use (or NULL for default)
*/
- public
LocalReaderGroup(Local
Reader reader, String title,
+ public
GuiReaderGroup(Gui
Reader reader, String title,
Color backgroundColor) {
this.reader = reader;
this.backgroundColor = backgroundColor;
Color backgroundColor) {
this.reader = reader;
this.backgroundColor = backgroundColor;
@@
-72,7
+72,7
@@
public class LocalReaderGroup extends JPanel {
/**
* Set the {@link ActionListener} that will be fired on each
/**
* Set the {@link ActionListener} that will be fired on each
- * {@link
Local
ReaderBook} action.
+ * {@link
Gui
ReaderBook} action.
*
* @param action
* the action
*
* @param action
* the action
@@
-83,7
+83,7
@@
public class LocalReaderGroup extends JPanel {
}
/**
}
/**
- * Refresh the list of {@link
Local
ReaderBook}s displayed in the control.
+ * Refresh the list of {@link
Gui
ReaderBook}s displayed in the control.
*
* @param stories
* the stories
*
* @param stories
* the stories
@@
-94,14
+94,14
@@
public class LocalReaderGroup extends JPanel {
this.stories = stories;
this.words = seeWordcount;
this.stories = stories;
this.words = seeWordcount;
- books = new ArrayList<
Local
ReaderBook>();
+ books = new ArrayList<
Gui
ReaderBook>();
invalidate();
pane.invalidate();
pane.removeAll();
if (stories != null) {
for (MetaData meta : stories) {
invalidate();
pane.invalidate();
pane.removeAll();
if (stories != null) {
for (MetaData meta : stories) {
-
LocalReaderBook book = new Local
ReaderBook(meta,
+
GuiReaderBook book = new Gui
ReaderBook(meta,
reader.isCached(meta.getLuid()), seeWordcount);
if (backgroundColor != null) {
book.setBackground(backgroundColor);
reader.isCached(meta.getLuid()), seeWordcount);
if (backgroundColor != null) {
book.setBackground(backgroundColor);
@@
-110,17
+110,17
@@
public class LocalReaderGroup extends JPanel {
books.add(book);
book.addActionListener(new BookActionListener() {
books.add(book);
book.addActionListener(new BookActionListener() {
- public void select(
Local
ReaderBook book) {
- for (
Local
ReaderBook abook : books) {
+ public void select(
Gui
ReaderBook book) {
+ for (
Gui
ReaderBook abook : books) {
abook.setSelected(abook == book);
}
}
abook.setSelected(abook == book);
}
}
- public void popupRequested(
Local
ReaderBook book,
+ public void popupRequested(
Gui
ReaderBook book,
MouseEvent e) {
}
MouseEvent e) {
}
- public void action(
Local
ReaderBook book) {
+ public void action(
Gui
ReaderBook book) {
}
});
}
});
@@
-152,7
+152,7
@@
public class LocalReaderGroup extends JPanel {
@Override
public void setEnabled(boolean b) {
if (books != null) {
@Override
public void setEnabled(boolean b) {
if (books != null) {
- for (
Local
ReaderBook book : books) {
+ for (
Gui
ReaderBook book : books) {
book.setEnabled(b);
book.repaint();
}
book.setEnabled(b);
book.repaint();
}