FileDocCategorySizeDatePackage
CategoryManager.javaAPI DocAzureus 3.0.3.43029Tue Feb 17 03:54:34 GMT 2004org.gudy.azureus2.core3.category

CategoryManager

public class CategoryManager extends Object
A singleton to manage Categories of Torrents (DownloadManagers).
author
TuxPaper

Fields Summary
Constructors Summary
Methods Summary
public static voidaddCategoryManagerListener(org.gudy.azureus2.core3.category.CategoryManagerListener l)
Add a CategoryManager Listener

param
l Listener to Add

    CategoryManagerImpl.getInstance().addCategoryManagerListener(l);
  
public static org.gudy.azureus2.core3.category.CategorycreateCategory(java.lang.String name)
Creates a new Category object and adds it to the list

return
If successful, returns the newly created Category. Otherwise, returns null.
param
name Name of Category to add

    return CategoryManagerImpl.getInstance().createCategory(name);
  
public static org.gudy.azureus2.core3.category.Category[]getCategories()
Retrieves the list of Categories To sort the categories by name (TYPE_USER last): Arrays.sort(categories);

return
List of Categories

    return CategoryManagerImpl.getInstance().getCategories();
  
public static org.gudy.azureus2.core3.category.CategorygetCategory(java.lang.String name)
Retrieve a Category

param
name Name of Category
return
Category you asked for

    return CategoryManagerImpl.getInstance().getCategory(name);
  
public static org.gudy.azureus2.core3.category.CategorygetCategory(int type)
Retrieve a non-user Category

param
type any type except TYPE_USER
return
The Category, or null if not found.
see
Category USER_ constants

    return CategoryManagerImpl.getInstance().getCategory(type);
  
public static voidremoveCategory(org.gudy.azureus2.core3.category.Category category)
Removes a Category from the list

param
category Category to remove

    CategoryManagerImpl.getInstance().removeCategory(category);
  
public static voidremoveCategoryManagerListener(org.gudy.azureus2.core3.category.CategoryManagerListener l)
Removes a CategoryManager Listener

param
l Listener to remove
see
CategoryManagerListener

    CategoryManagerImpl.getInstance().removeCategoryManagerListener(l);