@Override protected DomNode getNextNode(final DomNode node) { return node.getPreviousSibling(); } };
/** * Returns the previous sibling element node of this element. * null if this element has no element sibling nodes that come before this one in the document tree. * @return the previous sibling element node of this element. * null if this element has no element sibling nodes that come before this one in the document tree */ public DomElement getPreviousElementSibling() { DomNode node = getPreviousSibling(); while (node != null && !(node instanceof DomElement)) { node = node.getPreviousSibling(); } return (DomElement) node; }
@Override protected DomNode getNextNode(final DomNode node) { return node.getPreviousSibling(); } };
@Override protected DomNode getNextNode(final DomNode node) { return node.getPreviousSibling(); } };
public DomNode previous() { if (!hasPrevious()) { throw new NoSuchElementException(); } next_ = prev_; prev_ = prev_.getPreviousSibling(); nextIndex_--; return next_; }
@Override public DomNode previous() { if (!hasPrevious()) { throw new NoSuchElementException(); } next_ = prev_; prev_ = prev_.getPreviousSibling(); nextIndex_--; return next_; }
public DomNode previous() { if (!hasPrevious()) { throw new NoSuchElementException(); } next_ = prev_; prev_ = prev_.getPreviousSibling(); nextIndex_--; return next_; }
public DomNode previous() { if (!hasPrevious()) { throw new NoSuchElementException(); } next_ = prev_; prev_ = prev_.getPreviousSibling(); nextIndex_--; return next_; }
@Override public DomNode previous() { if (!hasPrevious()) { throw new NoSuchElementException(); } next_ = prev_; prev_ = prev_.getPreviousSibling(); nextIndex_--; return next_; }
/** * Gets the JavaScript property "previousSibling" for the node that * contains the current node. * @return the previous sibling node or null if the current node has * no previous sibling. */ public Node jsxGet_previousSibling() { return getJavaScriptNode(this.<DomNode>getDomNodeOrDie().getPreviousSibling()); }
/** * Gets the JavaScript property "previousSibling" for the node that * contains the current node. * @return the previous sibling node or null if the current node has * no previous sibling. */ public Node jsxGet_previousSibling() { return getJavaScriptNode(getDomNodeOrDie().getPreviousSibling()); }
/** * Gets the JavaScript property "previousSibling" for the node that * contains the current node. * @return the previous sibling node or null if the current node has * no previous sibling. */ public Node jsxGet_previousSibling() { return getJavaScriptNode(getDomNodeOrDie().getPreviousSibling()); }
@Override protected DomNode getFirstNode(final DomNode node) { if (node == null) { return null; } final DomNode sibling = node.getPreviousSibling(); if (sibling == null) { return getFirstNode(node.getParentNode()); } return sibling; } @Override
/** * Gets the JavaScript property "previousSibling" for the node that * contains the current node. * @return the previous sibling node or null if the current node has * no previous sibling. */ public Node jsxGet_previousSibling() { return getJavaScriptNode(getDomNodeOrDie().getPreviousSibling()); }
@Override protected DomNode getFirstNode(final DomNode node) { if (node == null) { return null; } final DomNode sibling = node.getPreviousSibling(); if (sibling == null) { return getFirstNode(node.getParentNode()); } return sibling; } @Override
@Override protected DomNode getFirstNode(final DomNode node) { if (node == null) { return null; } final DomNode sibling = node.getPreviousSibling(); if (sibling == null) { return getFirstNode(node.getParentNode()); } return sibling; } @Override
/** * Gets the JavaScript property {@code previousSibling} for the node that * contains the current node. * @return the previous sibling node or null if the current node has * no previous sibling. */ @JsxGetter public Node getPreviousSibling() { return getJavaScriptNode(getDomNodeOrDie().getPreviousSibling()); }
/** * Returns the previous sibling of the node in the parent's child list. * @return the previous sibling of the node in the parent's child list */ @JsxGetter public XMLDOMNode getPreviousSibling() { final DomNode domNode = getDomNodeOrDie(); return getJavaScriptNode(domNode.getPreviousSibling()); }
/** * Gets the JavaScript property {@code previousSibling} for the node that * contains the current node. * @return the previous sibling node or null if the current node has * no previous sibling. */ @JsxGetter public Node getPreviousSibling() { return getJavaScriptNode(getDomNodeOrDie().getPreviousSibling()); }
/** * Returns the previous sibling of the node in the parent's child list. * @return the previous sibling of the node in the parent's child list */ @JsxGetter public XMLDOMNode getPreviousSibling() { final DomNode domNode = getDomNodeOrDie(); return getJavaScriptNode(domNode.getPreviousSibling()); }