/** * Gets the node within which the Range ends. * @return <code>undefined</code> if not initialized */ public Object jsxGet_endContainer() { if (endContainer_ == null) { return Context.getUndefinedValue(); } return endContainer_; }
/** * Gets the node within which the Range ends. * @return <code>undefined</code> if not initialized */ public Object jsxGet_endContainer() { if (endContainer_ == null) { return Context.getUndefinedValue(); } return endContainer_; }
/** * Gets the node within which the Range begins. * @return <code>undefined</code> if not initialized */ public Object jsxGet_startContainer() { if (startContainer_ == null) { return Context.getUndefinedValue(); } return startContainer_; }
/** * Gets the node within which the Range begins. * @return <code>undefined</code> if not initialized */ public Object jsxGet_startContainer() { if (startContainer_ == null) { return Context.getUndefinedValue(); } return startContainer_; }
/** * Gets the node within which the Range begins. * @return <code>undefined</code> if not initialized */ public Object jsxGet_startContainer() { if (startContainer_ == null) { return Context.getUndefinedValue(); } return startContainer_; }
/** * Gets the node within which the Range ends. * @return <code>undefined</code> if not initialized */ public Object jsxGet_endContainer() { if (endContainer_ == null) { return Context.getUndefinedValue(); } return endContainer_; }
/** * {@inheritDoc} */ public Object getWithFallback(final String name) { final Object response = jsxFunction_namedItem(name); if (response != null) { return response; } return Context.getUndefinedValue(); }
/** * {@inheritDoc} */ public Object getWithFallback(final String name) { final Object response = jsxFunction_namedItem(name); if (response != null) { return response; } return Context.getUndefinedValue(); }
/** * {@inheritDoc} */ public Object getWithFallback(final String name) { final Object response = jsxFunction_namedItem(name); if (response != null) { return response; } return Context.getUndefinedValue(); }
/** * Prepares the WebRequestSettings that will be sent. * @param content the content to send */ private void prepareRequest(final Object content) { if (HttpMethod.POST == requestSettings_.getHttpMethod() && content != null && !Context.getUndefinedValue().equals(content)) { final String body = Context.toString(content); if (body.length() > 0) { LOG.debug("Setting request body to: " + body); requestSettings_.setRequestBody(body); } } }
/** * Prepares the WebRequestSettings that will be sent. * @param content the content to send */ private void prepareRequest(final Object content) { if (HttpMethod.POST == requestSettings_.getHttpMethod() && content != null && !Context.getUndefinedValue().equals(content)) { final String body = Context.toString(content); if (body.length() > 0) { LOG.debug("Setting request body to: " + body); requestSettings_.setRequestBody(body); } } }
/** * Prepares the WebRequestSettings that will be sent. * @param content the content to send */ private void prepareRequest(final Object content) { if (HttpMethod.POST == requestSettings_.getHttpMethod() && content != null && !Context.getUndefinedValue().equals(content)) { final String body = Context.toString(content); if (body.length() > 0) { LOG.debug("Setting request body to: " + body); requestSettings_.setRequestBody(body); } } }
/** * Gets the deepest common ancestor container of the Range's two boundary-points. * @return the ancestor */ @SuppressWarnings("unchecked") public Object jsxGet_commonAncestorContainer() { if (startContainer_ == null) { return Context.getUndefinedValue(); } final List<Node> startContainerAncestor = getAncestorsAndSelf(startContainer_); final List<Node> endContainerAncestor = getAncestorsAndSelf(endContainer_); final List<Node> commonAncestors = ListUtils.intersection(startContainerAncestor, endContainerAncestor); return commonAncestors.get(commonAncestors.size() - 1); }
/** * Gets the deepest common ancestor container of the Range's two boundary-points. * @return the ancestor */ @SuppressWarnings("unchecked") public Object jsxGet_commonAncestorContainer() { if (startContainer_ == null) { return Context.getUndefinedValue(); } final List<Node> startContainerAncestor = getAncestorsAndSelf(startContainer_); final List<Node> endContainerAncestor = getAncestorsAndSelf(endContainer_); final List<Node> commonAncestors = ListUtils.intersection(startContainerAncestor, endContainerAncestor); return commonAncestors.get(commonAncestors.size() - 1); }
/** * Gets the deepest common ancestor container of the Range's two boundary-points. * @return the ancestor */ @SuppressWarnings("unchecked") public Object jsxGet_commonAncestorContainer() { if (startContainer_ == null) { return Context.getUndefinedValue(); } final List<Node> startContainerAncestor = getAncestorsAndSelf(startContainer_); final List<Node> endContainerAncestor = getAncestorsAndSelf(endContainer_); final List<Node> commonAncestors = ListUtils.intersection(startContainerAncestor, endContainerAncestor); return commonAncestors.get(commonAncestors.size() - 1); }
/** * Returns the specified object, unless it is the <tt>NOT_FOUND</tt> constant, in which case <tt>null</tt> * is returned for IE. * @param object the object to return * @return the specified object, unless it is the <tt>NOT_FOUND</tt> constant, in which case <tt>null</tt> * is returned for IE. */ private Object nullIfNotFound(final Object object) { if (object == NOT_FOUND) { if (getBrowserVersion().isIE()) { return null; } return Context.getUndefinedValue(); } return object; }
/** * Returns the specified object, unless it is the <tt>NOT_FOUND</tt> constant, in which case <tt>null</tt> * is returned for IE. * @param object the object to return * @return the specified object, unless it is the <tt>NOT_FOUND</tt> constant, in which case <tt>null</tt> * is returned for IE. */ private Object nullIfNotFound(final Object object) { if (object == NOT_FOUND) { if (getBrowserVersion().isIE()) { return null; } return Context.getUndefinedValue(); } return object; }
/** * {@inheritDoc} */ @Override public Object get(final int index, final Scriptable start) { final HTMLCollection frames = getFrames(); if (index >= frames.jsxGet_length()) { return Context.getUndefinedValue(); } return frames.jsxFunction_item(index); }
/** * {@inheritDoc} */ @Override public Object get(final int index, final Scriptable start) { final HTMLCollection frames = getFrames(); if (index >= frames.jsxGet_length()) { return Context.getUndefinedValue(); } return frames.jsxFunction_item(index); }
/** * {@inheritDoc} */ @Override public Object get(final int index, final Scriptable start) { final HTMLCollection frames = getFrames(); if (index >= frames.jsxGet_length()) { return Context.getUndefinedValue(); } return frames.jsxFunction_item(index); }