Class CategoryManagerImpl

    • Field Detail

      • color_default

        private static final int[] color_default
      • class_mon

        private static final AEMonitor class_mon
      • doneLoading

        private boolean doneLoading
      • categories

        private final java.util.Map<java.lang.String,​CategoryImpl> categories
      • categories_mon

        private final AEMonitor categories_mon
      • dms_with_cats

        private final java.util.concurrent.atomic.AtomicInteger dms_with_cats
    • Constructor Detail

      • CategoryManagerImpl

        private CategoryManagerImpl()
    • Method Detail

      • loadCategories

        protected void loadCategories()
      • saveCategories

        protected void saveCategories​(Category category)
      • saveCategories

        protected void saveCategories()
      • createCategory

        public Category createCategory​(java.lang.String name)
      • removeCategory

        public void removeCategory​(Category category)
      • getCategories

        public Category[] getCategories()
      • getCategory

        public CategoryImpl getCategory​(java.lang.String name)
      • getCategory

        public Category getCategory​(int type)
      • makeSpecialCategories

        private void makeSpecialCategories()
      • downloadManagerAdded

        public void downloadManagerAdded​(Category cat,
                                         DownloadManager manager)
        Description copied from interface: CategoryListener
        A DownloadManager has been added to a Category
        Specified by:
        downloadManagerAdded in interface CategoryListener
        Parameters:
        cat - Category that the DownloadManager has been added to
        manager - DownloadManager that was added
      • downloadManagerRemoved

        public void downloadManagerRemoved​(Category cat,
                                           DownloadManager manager)
        Description copied from interface: CategoryListener
        A DownloadManager has been removed from a Category
        Specified by:
        downloadManagerRemoved in interface CategoryListener
        Parameters:
        cat - Category that the DownloadManager was removed from
        manager - The DownloadManager that was removed
      • getCategorisedDownloadCount

        public int getCategorisedDownloadCount()
      • getTags

        public java.util.List<Tag> getTags()
        Specified by:
        getTags in interface TagType
      • checkConfig

        private void checkConfig()
      • getDisplayName

        private java.lang.String getDisplayName​(CategoryImpl c)
      • getAddedTime

        protected long getAddedTime​(Download download)
      • escape

        protected java.lang.String escape​(java.lang.String str)