Class AlbumObjectFactory

java.lang.Object
se.datadosen.jalbum.AlbumObjectFactory
All Implemented Interfaces:
PropertyChangeListener, Serializable, EventListener
Direct Known Subclasses:
NoDiacriticsAlbumObjectFactory, WebSafeAlbumObjectFactory

public class AlbumObjectFactory extends Object implements Serializable, PropertyChangeListener
See Also:
  • Field Details

  • Constructor Details

    • AlbumObjectFactory

      public AlbumObjectFactory(AlbumBean engine)
  • Method Details

    • createInstance

      public AlbumObject createInstance(File file)
    • createInstance

      public AlbumObject createInstance(File file, FileNamerContext context)
    • createInstance

      public AlbumObject createInstance(File file, AlbumObject parent)
    • isCacheThumbnails

      public boolean isCacheThumbnails()
    • setCacheThumbnails

      public void setCacheThumbnails(boolean cacheThumbnails)
    • isIncludeExcluded

      public boolean isIncludeExcluded()
    • setIncludeExcluded

      public void setIncludeExcluded(boolean includeExcluded)
    • isIncludeMissing

      public boolean isIncludeMissing()
    • setIncludeMissing

      public void setIncludeMissing(boolean includeMissing)
    • isCached

      public boolean isCached()
    • setCached

      public void setCached(boolean cached)
      Set to true to allow heavy cacheing of various album object meta data Set before creating instances
      Parameters:
      cached -
    • isIgnoreOrdering

      public boolean isIgnoreOrdering()
      Returns:
      if counting-only mode is activated
      Since:
      24
    • setIgnoreOrdering

      public void setIgnoreOrdering(boolean ignoreOrdering)
      Master switch to speed up getChildren calls when ordering isn't important When ignoreOrdering is true, no ordering is applied to getChildren calls JAlbumUtilities.countCategories() toggles this on and off for max performance
      Parameters:
      ignoreOrdering -
      Since:
      24
    • getFileFilter

      public AlbumFileFilter getFileFilter()
    • getFilter

      public AlbumObjectFilter getFilter()
    • setFilter

      public void setFilter(AlbumObjectFilter filter)
    • propertyChange

      public void propertyChange(PropertyChangeEvent evt)
      Specified by:
      propertyChange in interface PropertyChangeListener
    • getUndoNotifier

      public UndoNotifier getUndoNotifier()
    • setUndoNotifier

      public void setUndoNotifier(UndoNotifier undoNotifier)