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
reformat
[fanfix.git]
/
src
/
be
/
nikiroo
/
fanfix_swing
/
gui
/
DetailsPanel.java
diff --git
a/src/be/nikiroo/fanfix_swing/gui/DetailsPanel.java
b/src/be/nikiroo/fanfix_swing/gui/DetailsPanel.java
index 751e37f511c5ed58fda8a7f7aa1885495755e5ea..e3185a6a81c3dc39796bde9ad22f638820327e51 100644
(file)
--- a/
src/be/nikiroo/fanfix_swing/gui/DetailsPanel.java
+++ b/
src/be/nikiroo/fanfix_swing/gui/DetailsPanel.java
@@
-60,8
+60,10
@@
public class DetailsPanel extends JPanel {
/**
* Configure a {@link JLabel} with the given colour.
*
/**
* Configure a {@link JLabel} with the given colour.
*
- * @param label the label to configure
- * @param color the colour to use
+ * @param label
+ * the label to configure
+ * @param color
+ * the colour to use
*
* @return the (same) configured label
*/
*
* @return the (same) configured label
*/
@@
-76,7
+78,8
@@
public class DetailsPanel extends JPanel {
/**
* Set the {@link BookInfo} you want to see displayed here.
*
/**
* Set the {@link BookInfo} you want to see displayed here.
*
- * @param info the {@link BookInfo} to display
+ * @param info
+ * the {@link BookInfo} to display
*/
public void setBook(final BookInfo info) {
this.info = info;
*/
public void setBook(final BookInfo info) {
this.info = info;
@@
-86,7
+89,8
@@
public class DetailsPanel extends JPanel {
name.setText(null);
opt.setText(null);
} else if (info.getMainInfo() == null) {
name.setText(null);
opt.setText(null);
} else if (info.getMainInfo() == null) {
- name.setText("All the " + info.getType().toString().toLowerCase() + "s");
+ name.setText(
+ "All the " + info.getType().toString().toLowerCase() + "s");
opt.setText(info.getSecondaryInfo(true));
} else {
final String myId = info.getId();
opt.setText(info.getSecondaryInfo(true));
} else {
final String myId = info.getId();
@@
-101,7
+105,8
@@
public class DetailsPanel extends JPanel {
BookInfo current = DetailsPanel.this.info;
if (current != null && current.getId().equals(myId)) {
BookInfo current = DetailsPanel.this.info;
if (current != null && current.getId().equals(myId)) {
- return BookBlock.generateCoverImage(Instance.getInstance().getLibrary(), info);
+ return BookBlock.generateCoverImage(
+ Instance.getInstance().getLibrary(), info);
}
return null;
}
return null;