Class DirectoryContentProvider
java.lang.Object
org.nuxeo.ecm.webengine.ui.tree.directory.DirectoryContentProvider
- All Implemented Interfaces:
Serializable,ContentProvider
- Author:
- Bogdan Stefanescu
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateQuery(DocumentModel parent, Map<String, Serializable> query) Object[]getChildren(Object obj) Gets the children for the given object.Object[]getElements(Object input) Gets the top level items.String[]Gets the object facets.Gets the label to be used when displaying the given object.Gets the name of the object.booleanisContainer(Object obj) Whether the given object may have children (e.g it's a container).
-
Field Details
-
session
-
-
Constructor Details
-
DirectoryContentProvider
-
-
Method Details
-
getSession
-
createQuery
-
getElements
Description copied from interface:ContentProviderGets the top level items.The items will be shown on the top level of the tree. These items are computed from the tree input that will be considered the tree root. The tree root is not visible.
- Specified by:
getElementsin interfaceContentProvider- Parameters:
input- the tree view input- Returns:
- the top level items
-
getChildren
Description copied from interface:ContentProviderGets the children for the given object.This method is used to populate the nested branches of the tree.
- Specified by:
getChildrenin interfaceContentProvider- Parameters:
obj- the object- Returns:
- the children or null if no children are supported
-
isContainer
Description copied from interface:ContentProviderWhether the given object may have children (e.g it's a container).- Specified by:
isContainerin interfaceContentProvider- Parameters:
obj- the object to test- Returns:
- true if it may have children, false otherwise
-
getName
Description copied from interface:ContentProviderGets the name of the object.The name must be an unique identifier relative to the parent item. It will be used as node names in the tree so that they will construct the item path.
- Specified by:
getNamein interfaceContentProvider- Parameters:
obj- the object- Returns:
- the name
-
getLabel
Description copied from interface:ContentProviderGets the label to be used when displaying the given object.- Specified by:
getLabelin interfaceContentProvider- Parameters:
obj- the object- Returns:
- the label
-
getFacets
Description copied from interface:ContentProviderGets the object facets.Facets are arbitrary strings that should describe object capabilities and can be used to decorate later the item.
In a web environment they may be translated to CSS classes.
- Specified by:
getFacetsin interfaceContentProvider- Returns:
- item facets
-