Package se.datadosen.jalbum
Class VirtualFolder
java.lang.Object
se.datadosen.jalbum.AlbumObjectImpl
se.datadosen.jalbum.VirtualFolder
- All Implemented Interfaces:
Transferable
,Serializable
,Comparable<AlbumObject>
,AlbumObject
Folder representation that lacks backing physical folder
- Since:
- 12.7
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface se.datadosen.jalbum.AlbumObject
AlbumObject.Ordering
-
Field Summary
Fields inherited from class se.datadosen.jalbum.AlbumObjectImpl
ALBUMFILES_FILE_NAME, AUDIO_CLIPS_FOLDER, CACHE_FOLDER, changeSupport, JALBUM_FOLDER_NAME, representingAlbumObject, SKIN_TEMPLATES_DIR, thumbCache, WEBLOCATION_EXTENSION
Fields inherited from interface se.datadosen.jalbum.AlbumObject
albumObjectFlavor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(AlbumObject child) Add AlbumObjct to children, replacing existing object with the added onesaddFileOf
(AlbumObject source) Create an album object out of passed file and add it to this VirtualFolder, ensuring it has a unique nameprotected Map<String,
AlbumObject> Speed up content look-upsvoid
Call if underlying (file) structure has changed Will force synchronization with underlying structure when getChildren is calledboolean
isFolder()
boolean
void
remove
(AlbumObject child) void
setChildren
(List<AlbumObject> children) Set List of children AlbumObjects if this is a directory/foldervoid
setFolderOrdering
(AlbumObject.Ordering folderOrdering) void
setFoldersFirst
(boolean foldersFirst) void
setOrdering
(AlbumObject.Ordering ordering) void
setReverseFolderOrdering
(boolean reverseFolderOrdering) void
setReverseOrdering
(boolean reverseOrdering) Methods inherited from class se.datadosen.jalbum.AlbumObjectImpl
add, add, add, add, addPropertyChangeListener, addPropertyChangeListener, compareTo, containsName, copyFileMetadataToXmp, createFolder, createFolder, createPage, createPage, delete, equals, fireModelChanged, firePropertyChange, getAudioClip, getAudioClipsFolder, getCameraDate, getCategory, getChild, getChild, getComment, getDescendants, getDescendants, getEngine, getFactory, getFile, getFlag, getImageInfo, getJAlbumFolder, getKeywords, getKeywordSet, getLastModified, getLastRefreshed, getMetadata, getName, getOrientation, getParent, getPathFrom, getPathFromRoot, getProperties, getRating, getRenderer, getRepresentingAlbumObject, getRepresentingAlbumObject, getRepresentingIcon, getRepresentingIcon, getRepresentingImageFile, getSize, getSize, getThumbnailPath, getTitle, getTransferData, getTransferDataFlavors, getUniqueName, getVars, getWebName, getWhenAdded, getXmpManager, hasDisplayableImage, hashCode, isCached, isDataFlavorSupported, isDisplayableImage, isHidden, isIncluded, isIncludeOriginal, isLink, isResourcesFolder, isReverseFolderOrdering, isReverseOrdering, isUseOriginal, isWithin, loadImage, loadImage, loadImage, moveTo, moveTo, moveTo, moveTo, removePropertyChangeListener, repairLink, rotateLeft, rotateRight, scaleToFit, setAudioClip, setCameraDate, setComment, setFlag, setHidden, setIncluded, setIncludeOriginal, setKeywords, setLastModified, setName, setOrientation, setRating, setRepresentingAlbumObject, setRepresentingIcon, setTitle, setUseOriginal, setVars, setWhenAdded, toString, updateRepresentingIcon
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface se.datadosen.jalbum.AlbumObject
getChildren, getChildren, getChildren, setKeywords
-
Constructor Details
-
VirtualFolder
-
-
Method Details
-
add
Description copied from interface:AlbumObject
Add AlbumObjct to children, replacing existing object with the added ones- Specified by:
add
in interfaceAlbumObject
- Overrides:
add
in classAlbumObjectImpl
- Parameters:
child
-
-
remove
-
addFileOf
Create an album object out of passed file and add it to this VirtualFolder, ensuring it has a unique name- Parameters:
source
-- Returns:
- created and added AlbumObject
-
isFolder
public boolean isFolder()- Specified by:
isFolder
in interfaceAlbumObject
- Overrides:
isFolder
in classAlbumObjectImpl
- Returns:
- boolean true if this AlbumObject represents a folder/directory
-
setReverseFolderOrdering
- Specified by:
setReverseFolderOrdering
in interfaceAlbumObject
- Overrides:
setReverseFolderOrdering
in classAlbumObjectImpl
- Throws:
IOException
-
setReverseOrdering
- Specified by:
setReverseOrdering
in interfaceAlbumObject
- Overrides:
setReverseOrdering
in classAlbumObjectImpl
- Throws:
IOException
-
setFoldersFirst
- Specified by:
setFoldersFirst
in interfaceAlbumObject
- Overrides:
setFoldersFirst
in classAlbumObjectImpl
- Throws:
IOException
-
isFoldersFirst
public boolean isFoldersFirst()- Specified by:
isFoldersFirst
in interfaceAlbumObject
- Overrides:
isFoldersFirst
in classAlbumObjectImpl
-
setFolderOrdering
- Specified by:
setFolderOrdering
in interfaceAlbumObject
- Overrides:
setFolderOrdering
in classAlbumObjectImpl
- Throws:
IOException
-
getFolderOrdering
- Specified by:
getFolderOrdering
in interfaceAlbumObject
- Overrides:
getFolderOrdering
in classAlbumObjectImpl
-
setOrdering
- Specified by:
setOrdering
in interfaceAlbumObject
- Overrides:
setOrdering
in classAlbumObjectImpl
- Throws:
IOException
-
getOrdering
- Specified by:
getOrdering
in interfaceAlbumObject
- Overrides:
getOrdering
in classAlbumObjectImpl
-
getNameMap
Description copied from class:AlbumObjectImpl
Speed up content look-ups- Specified by:
getNameMap
in classAlbumObjectImpl
- Returns:
-
getChildren
- Returns:
- List of children AlbumObjects of this AlbumObject or null if this is not a directory/folder. Will return an empty list if this is an empty directory/folder
- See Also:
-
setChildren
Description copied from interface:AlbumObject
Set List of children AlbumObjects if this is a directory/folder- Throws:
IOException
-
invalidate
public void invalidate()Description copied from interface:AlbumObject
Call if underlying (file) structure has changed Will force synchronization with underlying structure when getChildren is called- Specified by:
invalidate
in interfaceAlbumObject
- Overrides:
invalidate
in classAlbumObjectImpl
-