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

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

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.xwiki.gwt.dom.client.filter.NodeFilter
NodeFilter.Action
 
Constructor Summary
WithClassName(String className)
          Creates a new filter that accepts only elements that have the specified CSS class name.
 
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

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

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–2015 XWiki. All rights reserved.