org.xwiki.gwt.dom.client.filter
Class WithClassName
java.lang.Object
org.xwiki.gwt.dom.client.filter.WithClassName
- All Implemented Interfaces:
- NodeFilter
public class WithClassName
- extends Object
- implements NodeFilter
Accepts only elements with the given CSS class name.
- Version:
- $Id: 07f36db843dfc259e13a60e89d183355c523aea1 $
|
Constructor Summary |
WithClassName(String className)
Creates a new filter that accepts only elements that have the specified CSS class name. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WithClassName
public WithClassName(String className)
- Creates a new filter that accepts only elements that have the specified CSS class name.
- Parameters:
className - the CSS class name to look for
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.