+ /**
+ * The Library UID of the book represented by this item.
+ *
+ * @return the LUID
+ */
+ public String getLuid() {
+ return luid;
+ }
+
+ /**
+ * This item {@link LocalReader} library cache state.
+ *
+ * @return TRUE if it is present in the {@link LocalReader} cache
+ */
+ public boolean isCached() {
+ return cached;
+ }
+
+ /**
+ * This item {@link LocalReader} library cache state.
+ *
+ * @param cached
+ * TRUE if it is present in the {@link LocalReader} cache
+ */
+ public void setCached(boolean cached) {
+ if (this.cached != cached) {
+ this.cached = cached;
+ invalidate();
+ }
+ }
+
+ /**
+ * Draw a "cached" icon and a partially transparent overlay if needed
+ * depending upon the selection and mouse-hover states on top of the normal
+ * component.
+ */