|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cbr.service.LocalStoreDelegate
This delegate handles thumbnails on behalf of the PicsStore
. It cuts thumbnails out of the picture entries
when entries are inserted
into an index, and pastes them back in when entries are
retrieved. Additionally, a delegate can be instructed to
delete thumbnails e. g. when entries are deleted from an
index.
Field Summary | |
private PicsSource |
pics_
The PicsSource from which thumbnails are retrieved. |
Constructor Summary | |
LocalStoreDelegate(PicsSource pics)
Creates an instance that assumes that thumbnails are already available locally. |
Method Summary | |
void |
cut(PictureEntry entry)
Deletes the thumbnail from the given entry. |
void |
delete(PictureEntry entry)
Does nothing. |
void |
paste(PictureEntry entry)
Retrieves the thumbnail with the name found in the given entry from the PicsSource of
this instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private PicsSource pics_
Constructor Detail |
public LocalStoreDelegate(PicsSource pics)
PicsSource
.
pics
- The PicsSource from which the thumbnails
are retrieved.Method Detail |
public void cut(PictureEntry entry) throws IOException
cut
in interface StoreDelegate
entry
- The entry from which the thumbnail is
removed and stored away.
IOException
- if an I/O error occurs.public void paste(PictureEntry entry) throws IOException
PicsSource
of
this instance.
paste
in interface StoreDelegate
entry
- The picture entry whose thumbnail shall be
restored.
IOException
- if an I/O error occurs.public void delete(PictureEntry entry)
delete
in interface StoreDelegate
entry
- The picture entry whose thumbnail shall be
deleted.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |