Example usage for com.google.gwt.dom.client SpanElement getClassName

List of usage examples for com.google.gwt.dom.client SpanElement getClassName

Introduction

In this page you can find the example usage for com.google.gwt.dom.client SpanElement getClassName.

Prototype

@Override
    public String getClassName() 

Source Link

Usage

From source file:org.drools.workbench.screens.scenariosimulation.client.collectioneditor.CollectionEditorUtils.java

License:Apache License

public static boolean isShown(SpanElement faAngleRight) {
    return faAngleRight.getClassName().contains(FA_ANGLE_DOWN);
}

From source file:org.nuxeo.ecm.platform.annotations.gwt.client.util.XPathUtil.java

License:Apache License

private boolean isIgnored(Node node) {
    int nodeType = node.getNodeType();
    if (nodeType != Node.ELEMENT_NODE && nodeType != Node.TEXT_NODE) {
        return true; // ignore non element and non text node
    }/*from   www  .ja  v a 2 s.co m*/
    if (node.getNodeName().equalsIgnoreCase("span")) {
        SpanElement spanElement = SpanElement.as(node).cast();
        String name = spanElement.getClassName();
        if (name == null) {
            return false;
        }
        return name.contains(AnnotationConstant.IGNORED_ELEMENT);
    } else if (node.getNodeName().equalsIgnoreCase("div")) {
        DivElement divElement = DivElement.as(node).cast();
        return divElement.getClassName().equals(AnnotationConstant.IGNORED_ELEMENT);
    }
    return false;
}