Class ListCategoryPosts.CategoriesForSite
- java.lang.Object
-
- org.fenixedu.cms.domain.component.ListCategoryPosts.CategoriesForSite
-
- All Implemented Interfaces:
ComponentContextProvider<Category>
- Enclosing class:
- ListCategoryPosts
public static class ListCategoryPosts.CategoriesForSite extends Object implements ComponentContextProvider<Category>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.fenixedu.cms.domain.component.ComponentContextProvider
ComponentContextProvider.EmptyProvider
-
-
Constructor Summary
Constructors Constructor Description CategoriesForSite()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringpresent(Category category)Presents the given item (returned by theComponentContextProvider.provide(Page)method).Collection<Category>provide(Page page)Provide the contextual items for the given page.
-
-
-
Method Detail
-
provide
public Collection<Category> provide(Page page)
Description copied from interface:ComponentContextProviderProvide the contextual items for the given page.- Specified by:
providein interfaceComponentContextProvider<Category>- Parameters:
page- The page in which the component will be inserted.- Returns:
- The options for the given slot.
-
present
public String present(Category category)
Description copied from interface:ComponentContextProviderPresents the given item (returned by theComponentContextProvider.provide(Page)method). By default, simply invokesObject.toString().- Specified by:
presentin interfaceComponentContextProvider<Category>- Parameters:
category- The item to present.- Returns:
- The presentation of the given item.
-
-