T - The type of elements in this categorypublic interface Category<T>
CategoriesBuilder or using the methods from the
Categories class. | Modifier and Type | Method and Description |
|---|---|
void |
addCategoryListener(CategoryListener<T> listener)
Add the given
CategoryListener to be informed about
changes in this category or any of its children. |
Category<T> |
getChild(String name)
Returns the child category with the given name, or
null
if there is no child with the given name. |
List<? extends Category<T>> |
getChildren()
Returns an unmodifiable (possibly empty) list containing the
children of this category.
|
List<T> |
getElements()
Returns an unmodifiable (possibly empty) list containing the
elements that belong to this category.
|
String |
getName()
Returns the name of this category.
|
void |
removeCategoryListener(CategoryListener<T> listener)
Remove the given
CategoryListener from this category |
String getName()
List<? extends Category<T>> getChildren()
Category<T> getChild(String name)
null
if there is no child with the given name.name - The name of the child categorynullList<T> getElements()
void addCategoryListener(CategoryListener<T> listener)
CategoryListener to be informed about
changes in this category or any of its children.listener - The CategoryListener to addvoid removeCategoryListener(CategoryListener<T> listener)
CategoryListener from this categorylistener - The CategoryListener to removeCopyright © 2018. All rights reserved.