org.xwiki.gwt.dom.client.filter
Class WithName
java.lang.Object
org.xwiki.gwt.dom.client.filter.WithName
- All Implemented Interfaces:
- NodeFilter
public class WithName
- extends Object
- implements NodeFilter
Filters nodes with the specified name.
- Version:
- $Id: 2359afdb7c028a5ee9172bb72ce9143bebc04f2d $
|
Constructor Summary |
WithName(String... names)
Creates a new filter that accepts DOM nodes if their name is contained in the given list. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WithName
public WithName(String... names)
- Creates a new filter that accepts DOM nodes if their name is contained in the given list.
- Parameters:
names - the list of node names to accept
acceptNode
public NodeFilter.Action acceptNode(com.google.gwt.dom.client.Node node)
- Description copied from interface:
NodeFilter
- Applies this filter on the given DOM node.
- Specified by:
acceptNode in interface NodeFilter
- Parameters:
node - the node to be filtered
- Returns:
- the action that should be taken on the filtered node by the calling iterator
Copyright © 2004–2014 XWiki. All rights reserved.