Class CmsNavigationFilter
- java.lang.Object
-
- org.opencms.ui.components.fileselect.CmsNavigationFilter
-
- All Implemented Interfaces:
com.vaadin.v7.data.Container.Filter
,java.io.Serializable
public class CmsNavigationFilter extends java.lang.Object implements com.vaadin.v7.data.Container.Filter
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CmsNavigationFilter(CmsObject cms, CmsResource root)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
appliesToProperty(java.lang.Object propertyId)
boolean
passesFilter(java.lang.Object itemId, com.vaadin.v7.data.Item item)
-
-
-
Constructor Detail
-
CmsNavigationFilter
public CmsNavigationFilter(CmsObject cms, CmsResource root) throws CmsException
Creates a new instance.- Parameters:
cms
- the CMS contextroot
- the root folder- Throws:
CmsException
- if something goes wrong
-
-
Method Detail
-
appliesToProperty
public boolean appliesToProperty(java.lang.Object propertyId)
- Specified by:
appliesToProperty
in interfacecom.vaadin.v7.data.Container.Filter
- See Also:
Container.Filter.appliesToProperty(java.lang.Object)
-
passesFilter
public boolean passesFilter(java.lang.Object itemId, com.vaadin.v7.data.Item item) throws java.lang.UnsupportedOperationException
- Specified by:
passesFilter
in interfacecom.vaadin.v7.data.Container.Filter
- Throws:
java.lang.UnsupportedOperationException
- See Also:
Container.Filter.passesFilter(java.lang.Object, com.vaadin.v7.data.Item)
-
-