Class CmsNavigationFilter
java.lang.Object
org.opencms.ui.components.fileselect.CmsNavigationFilter
- All Implemented Interfaces:
com.vaadin.v7.data.Container.Filter
,Serializable
Filter used to hide folder tree items which are not either navigation items themselves or are required to navigate
from the site root to a navigation item.
- See Also:
-
Constructor Summary
ConstructorDescriptionCmsNavigationFilter
(CmsObject cms, CmsResource root) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionboolean
appliesToProperty
(Object propertyId) boolean
passesFilter
(Object itemId, com.vaadin.v7.data.Item item)
-
Constructor Details
-
CmsNavigationFilter
Creates a new instance.- Parameters:
cms
- the CMS contextroot
- the root folder- Throws:
CmsException
- if something goes wrong
-
-
Method Details
-
appliesToProperty
- Specified by:
appliesToProperty
in interfacecom.vaadin.v7.data.Container.Filter
- See Also:
-
Container.Filter.appliesToProperty(java.lang.Object)
-
passesFilter
public boolean passesFilter(Object itemId, com.vaadin.v7.data.Item item) throws UnsupportedOperationException - Specified by:
passesFilter
in interfacecom.vaadin.v7.data.Container.Filter
- Throws:
UnsupportedOperationException
- See Also:
-
Container.Filter.passesFilter(java.lang.Object, com.vaadin.v7.data.Item)
-