@Test public void testHierarchicalFilteringWithParents() { HierarchicalContainer container = new HierarchicalContainer(); initializeContainer(container); container.setIncludeParentsWhenFiltering(true); container.addContainerFilter(FULLY_QUALIFIED_NAME, "ab", false, false); int expectedSize = 29; int expectedRoots = 1; validateHierarchicalContainer(container, "com", "com.vaadin.ui.TabSheet", "com.vaadin.terminal.gwt.client.Focusable", "blah", true, expectedSize, expectedRoots, true); container.removeAllContainerFilters(); container.addContainerFilter(FULLY_QUALIFIED_NAME, ".gwt.client.", false, false); int packages = 6; int classes = 112; expectedSize = packages + classes; expectedRoots = 1; validateHierarchicalContainer(container, "com", "com.vaadin.terminal.gwt.client.WidgetSet", "com.vaadin.terminal.gwt.client.ui.VSplitPanelVertical", "blah", true, expectedSize, expectedRoots, true); container.addContainerFilter(SIMPLE_NAME, "m", false, false); expectedSize = 7 + 18; expectedRoots = 1; validateHierarchicalContainer( container, "com", "com.vaadin.terminal.gwt.client.ui.VUriFragmentUtility", "com.vaadin.terminal.gwt.client.ui.layout.ChildComponentContainer", "blah", true, expectedSize, expectedRoots, true); }
public void setIncludeParentsWhenFiltering( boolean includeParentsWhenFiltering) { this.includeParentsWhenFiltering = includeParentsWhenFiltering; if (filteredRoots != null) { doFilterContainer(true); } }
HierarchicalContainer extends IndexedContainer implements
        Container.Hierarchical { public void setIncludeParentsWhenFiltering( boolean includeParentsWhenFiltering) { this.includeParentsWhenFiltering = includeParentsWhenFiltering; if (filteredRoots != null) { doFilterContainer(true); } } }
HierarchicalContainer extends IndexedContainer implements
        Container.Hierarchical { public void setIncludeParentsWhenFiltering( boolean includeParentsWhenFiltering) { this.includeParentsWhenFiltering = includeParentsWhenFiltering; if (filteredRoots != null) { doFilterContainer(true); } }  }
HierarchicalContainer extends IndexedContainer implements
        Container.Hierarchical { public void setIncludeParentsWhenFiltering( boolean includeParentsWhenFiltering) { this.includeParentsWhenFiltering = includeParentsWhenFiltering; if (filteredRoots != null) { doFilterContainer(true); } }  @Override boolean areChildrenAllowed(Object itemId); @Override Collection<?> getChildren(Object itemId); @Override Object getParent(Object itemId); @Override boolean hasChildren(Object itemId); @Override boolean isRoot(Object itemId); @Override Collection<?> rootItemIds(); @Override boolean setChildrenAllowed(Object itemId, boolean childrenAllowed); @Override boolean setParent(Object itemId, Object newParentId); void moveAfterSibling(Object itemId, Object siblingId); @Override Object addItem(); @Override Item addItem(Object itemId); @Override boolean removeAllItems(); @Override boolean removeItem(Object itemId); boolean removeItemRecursively(Object itemId); static boolean removeItemRecursively(
            Container.Hierarchical container, Object itemId); boolean isIncludeParentsWhenFiltering(); void setIncludeParentsWhenFiltering(
            boolean includeParentsWhenFiltering); }
HierarchicalContainer extends IndexedContainer implements
        Container.Hierarchical { public void setIncludeParentsWhenFiltering( boolean includeParentsWhenFiltering) { this.includeParentsWhenFiltering = includeParentsWhenFiltering; if (filteredRoots != null) { doFilterContainer(true); } }  @Override boolean areChildrenAllowed(Object itemId); @Override Collection<?> getChildren(Object itemId); @Override Object getParent(Object itemId); @Override boolean hasChildren(Object itemId); @Override boolean isRoot(Object itemId); @Override Collection<?> rootItemIds(); @Override boolean setChildrenAllowed(Object itemId, boolean childrenAllowed); @Override boolean setParent(Object itemId, Object newParentId); void moveAfterSibling(Object itemId, Object siblingId); @Override Object addItem(); @Override Item addItem(Object itemId); @Override boolean removeAllItems(); @Override boolean removeItem(Object itemId); boolean removeItemRecursively(Object itemId); static boolean removeItemRecursively(
            Container.Hierarchical container, Object itemId); boolean isIncludeParentsWhenFiltering(); void setIncludeParentsWhenFiltering(
            boolean includeParentsWhenFiltering);  }