org.xwiki.gwt.dom.client.filter
Class WithName

java.lang.Object
  extended by 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$

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.xwiki.gwt.dom.client.filter.NodeFilter
NodeFilter.Action
 
Constructor Summary
WithName(String... names)
          Creates a new filter that accepts DOM nodes if their name is contained in the given list.
 
Method Summary
 NodeFilter.Action acceptNode(com.google.gwt.dom.client.Node node)
          Applies this filter on the given DOM node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

acceptNode

public NodeFilter.Action acceptNode(com.google.gwt.dom.client.Node node)
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
See Also:
NodeFilter.acceptNode(Node)


Copyright © 2004-2011 XWiki. All Rights Reserved.