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

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

Introduction

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

Prototype

@Override
    public <T extends JavascriptObjectEquivalent> T cast() 

Source Link

Usage

From source file:org.nuxeo.ecm.platform.annotations.gwt.client.view.decorator.AnnoteaDecoratorVisitor.java

License:Apache License

private SpanElement getSpanElement(Document document) {
    SpanElement spanElement = document.createSpanElement();
    DOM.sinkEvents((Element) spanElement.cast(), Event.ONMOUSEOVER | Event.ONMOUSEOUT);
    DOM.setEventListener((Element) spanElement.cast(),
            AnnotationPopupEventListener.getAnnotationPopupEventListener(annotation, controller));
    spanElement.setClassName(AnnotationConstant.IGNORED_ELEMENT + " " + controller.getDecorateClassName() + " "
            + AnnotationConstant.DECORATE_CLASS_NAME + annotation.getId());
    return spanElement;
}

From source file:org.nuxeo.ecm.platform.annotations.gwt.client.view.decorator.NuxeoDecoratorVisitor.java

License:Apache License

protected SpanElement getSpanElement(Document document) {
    SpanElement spanElement = document.createSpanElement();
    DOM.sinkEvents((Element) spanElement.cast(), Event.ONMOUSEOVER | Event.ONMOUSEOUT);
    DOM.setEventListener((Element) spanElement.cast(),
            AnnotationPopupEventListener.getAnnotationPopupEventListener(annotation, controller));
    return spanElement;
}