Checkboxes.java :  » Testing » watij » watij » elements » Java Open Source

Java Open Source » Testing » watij 
watij » watij » elements » Checkboxes.java
package watij.elements;

import org.w3c.dom.Element;
import watij.finders.AttributeFinder;
import watij.finders.TagFinder;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User:
 * Date: Apr 20, 2006
 * Time: 8:26:34 PM
 * To change this template use File | Settings | File Templates.
 */
public class Checkboxes extends HtmlElementCollections<Checkbox> {

    public Checkboxes(List<Element> list, HtmlElementFactory htmlElementFactory) throws Exception {
        super(list, htmlElementFactory);
    }

    protected Checkbox get(Element element) throws Exception {
        return htmlElementFactory().checkbox(element);
    }

    public boolean matches(Element element) throws Exception {
        return new TagFinder("input").matches(element) && new AttributeFinder("type", "checkbox").matches(element);
    }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.