X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;ds=inline;f=src%2Fbe%2Fnikiroo%2Ffanfix%2Freader%2Fui%2FGuiReaderGroup.java;h=cc3f1e15f59794e4c3117b3f9efe3e9d1be90ecd;hb=84754696d2b0831fd27ccfe74985463df6cff62c;hp=a0023898bb5cadd31dc91be00e9e6c47727e2aea;hpb=a12b668f37bdaf852ca2377739fd73b610f928c8;p=nikiroo-utils.git diff --git a/src/be/nikiroo/fanfix/reader/ui/GuiReaderGroup.java b/src/be/nikiroo/fanfix/reader/ui/GuiReaderGroup.java index a002389..cc3f1e1 100644 --- a/src/be/nikiroo/fanfix/reader/ui/GuiReaderGroup.java +++ b/src/be/nikiroo/fanfix/reader/ui/GuiReaderGroup.java @@ -116,31 +116,33 @@ public class GuiReaderGroup extends JPanel { } /** - * Note: this class supports NULL as a background color, which will revert + * Note: this class supports NULL as a background colour, which will revert * it to its default state. *
* Note: this class' implementation will also set the main pane background - * color at the same time. + * colour at the same time. *
- * Sets the background color of this component. The background color is used
- * only if the component is opaque, and only by subclasses of
+ * Sets the background colour of this component. The background colour is
+ * used only if the component is opaque, and only by subclasses of
* JComponent
or ComponentUI
implementations.
* Direct subclasses of JComponent
must override
- * paintComponent
to honor this property.
+ * paintComponent
to honour this property.
*
- * It is up to the look and feel to honor this property, some may choose to
+ * It is up to the look and feel to honour this property, some may choose to
* ignore it.
*
- * @param bg
- * the desired background Color
+ * @param backgroundColor
+ * the desired background Colour
* @see java.awt.Component#getBackground
* @see #setOpaque
*
* @beaninfo preferred: true bound: true attribute: visualUpdate true
- * description: The background color of the component.
+ * description: The background colour of the component.
*/
@Override
public void setBackground(Color backgroundColor) {
+ this.backgroundColor = backgroundColor;
+
Color cme = backgroundColor == null ? backgroundColorDef
: backgroundColor;
Color cpane = backgroundColor == null ? backgroundColorDefPane
@@ -209,9 +211,6 @@ public class GuiReaderGroup extends JPanel {
/**
* Refresh the list of {@link GuiReaderBook}s displayed in the control.
- *
- * @param infos
- * the new list of infos
*/
public void refreshBooks() {
refreshBooks(infos, words);
@@ -362,7 +361,7 @@ public class GuiReaderGroup extends JPanel {
* @param index
* the index of the book to select, can be outside the bounds
* (either all the items will be unselected or the first or last
- * book will then be selected, see forceRange>/tt>)
+ * book will then be selected, see forceRange>)
* @param forceRange
* TRUE to constraint the index to the first/last element, FALSE
* to unselect when outside the range