Skip navigation links
A C D E G M R T 

A

add(T) - Method in class de.javagl.category.CategoriesBuilder
Add the given element to the category represented by this builder.
addAll(Iterable<? extends T>) - Method in class de.javagl.category.CategoriesBuilder
Add the given elements to the category represented by this builder.
addCategoryListener(CategoryListener<T>) - Method in interface de.javagl.category.Category
Add the given CategoryListener to be informed about changes in this category or any of its children.
addChild(String) - Method in interface de.javagl.category.MutableCategory
Add a new child Category with the given name and return it.
addElements(Iterable<? extends T>) - Method in interface de.javagl.category.MutableCategory
Add the given elements to this Category
addIfUncategorized(String, Iterable<? extends T>) - Method in class de.javagl.category.CategoriesBuilder
Add each of the given elements to a category with the given name iff it is not already contained in the current category or any of its children.

C

Categories - Class in de.javagl.category
Methods related to Category instances
CategoriesBuilder<T> - Class in de.javagl.category
A builder for Category hierarchies: CategoriesBuilder<Type> b = Categories.createBuilder("Root"); b.add(elementForRoot); b.get("FirstChild").add(someElementForFirstChild); b.get("FirstChild").add(someOtherElementForFirstChild); b.get("SecondChild").add(ElementForSecondChild); b.get("SecondChild").get("GrandChild").add(lastElement); Category<Type> root = b.get(); This class essentially wraps a MutableCategory and offers convenience functions for the initial construction of the categories, for example, by creating the child categories on demand.
Category<T> - Interface in de.javagl.category
Interface for a category that contains elements and is part of a hierarchy.
CategoryEvent<T> - Class in de.javagl.category
A class describing a change in a Category
CategoryListener<T> - Interface in de.javagl.category
Interface for classes that want to be informed about changes in a Category.
childAdded(CategoryEvent<T>) - Method in interface de.javagl.category.CategoryListener
Will be called when a child was added to a Category
childRemoved(CategoryEvent<T>) - Method in interface de.javagl.category.CategoryListener
Will be called when a child was removed from a Category
create(String) - Static method in class de.javagl.category.Categories
Create a new MutableCategory with the given name
createBuilder(String) - Static method in class de.javagl.category.Categories
Creates a new instance of a CategoriesBuilder, using the given name for the root category.

D

de.javagl.category - package de.javagl.category
Classes and interfaces related to the management of Category objects.

E

elementsAdded(CategoryEvent<T>) - Method in interface de.javagl.category.CategoryListener
Will be called when elements have been added to a Category
elementsRemoved(CategoryEvent<T>) - Method in interface de.javagl.category.CategoryListener
Will be called when elements have been removed from a Category

G

get(String) - Method in class de.javagl.category.CategoriesBuilder
Returns a builder for the sub-category with the given name.
get() - Method in class de.javagl.category.CategoriesBuilder
Returns the MutableCategory that is currently being built
getAllElements(Category<T>) - Static method in class de.javagl.category.Categories
Returns a new set containing all elements of the given Category and its children.
getCategory() - Method in class de.javagl.category.CategoryEvent
Returns the Category from which this event originated
getChild(String) - Method in interface de.javagl.category.Category
Returns the child category with the given name, or null if there is no child with the given name.
getChild() - Method in class de.javagl.category.CategoryEvent
Returns the child that was added or removed
getChild(String) - Method in interface de.javagl.category.MutableCategory
Returns the child category with the given name, or null if there is no child with the given name.
getChildren() - Method in interface de.javagl.category.Category
Returns an unmodifiable (possibly empty) list containing the children of this category.
getChildren() - Method in interface de.javagl.category.MutableCategory
Returns an unmodifiable (possibly empty) list containing the children of this category.
getElements() - Method in interface de.javagl.category.Category
Returns an unmodifiable (possibly empty) list containing the elements that belong to this category.
getElements() - Method in class de.javagl.category.CategoryEvent
Returns an unmodifiable set containing the elements that have been added or removed
getName() - Method in interface de.javagl.category.Category
Returns the name of this category.

M

mergeRecursively(MutableCategory<T>, Category<? extends T>) - Static method in class de.javagl.category.Categories
Merges the given source Category into the given target Category.
mergeRecursively(Category<? extends T>) - Method in class de.javagl.category.CategoriesBuilder
Merges the given Category with the Category that is currently being built.
MutableCategory<T> - Interface in de.javagl.category
Interface for a mutable Category

R

removeAllChildren() - Method in interface de.javagl.category.MutableCategory
Remove all children from this Category.
removeAllElements() - Method in interface de.javagl.category.MutableCategory
Remove all elements from this Category.
removeCategoryListener(CategoryListener<T>) - Method in interface de.javagl.category.Category
Remove the given CategoryListener from this category
removeChild(String) - Method in interface de.javagl.category.MutableCategory
Remove the child Category with the given name.
removeElements(Iterable<? extends T>) - Method in interface de.javagl.category.MutableCategory
Remove the given elements from this Category
removeEmptyCategories(MutableCategory<?>) - Static method in class de.javagl.category.Categories
Clean up the given Category.

T

toFormattedString(Category<?>) - Static method in class de.javagl.category.Categories
Creates a formatted, multi-line string representation of the given Category.
toString() - Method in class de.javagl.category.CategoryEvent
 
A C D E G M R T 

Copyright © 2018. All rights reserved.