Search in sources :

Example 1 with Selection

use of com.gargoylesoftware.htmlunit.javascript.host.dom.Selection in project htmlunit by HtmlUnit.

the class HTMLCollectionFrames method getSelectionImpl.

/**
 * Returns the current selection.
 * @return the current selection
 */
public Selection getSelectionImpl() {
    if (selection_ == null) {
        selection_ = new Selection();
        selection_.setParentScope(this);
        selection_.setPrototype(getPrototype(selection_.getClass()));
    }
    return selection_;
}
Also used : Selection(com.gargoylesoftware.htmlunit.javascript.host.dom.Selection)

Aggregations

Selection (com.gargoylesoftware.htmlunit.javascript.host.dom.Selection)1