Example usage for com.google.gwt.dom.client Text removeFromParent

List of usage examples for com.google.gwt.dom.client Text removeFromParent

Introduction

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

Prototype

@Override
    public void removeFromParent() 

Source Link

Usage

From source file:com.bfr.client.selection.impl.RangeImplIE6.java

License:Apache License

/**
 * IE has no function for doing this with a range vs with a selection, so
 * instead use pasteHTML, then remove the resulting element.
 *
 * @see com.bfr.client.selection.impl.RangeImpl#deleteContents(com.bfr.client.selection.impl.RangeImpl.JSRange)
 *//*from   w w w.  j av  a  2  s .  c  o  m*/
@Override
public void deleteContents(JSRange range) {
    Text txt = placeholdRange(range);
    if (txt != null) {
        txt.removeFromParent();
    }
}