public void execute() { indexInChildrenArray = DOMUtilities.getChildIndex(childNode, parentNode); parentNode.removeChild(childNode); }
public void execute() { indexInChildrenArray = DOMUtilities.getChildIndex(childNode, parentNode); parentNode.removeChild(childNode); }
/** * Finds and returns the index of child node in the given parent's children * array * * @param child * The child node * @param parent * The parent node * @return the index */ public static int getChildIndex(Node child, Node parent) { if (child == null || child.getParentNode() != parent || child.getParentNode() == null) { return -1; } return getChildIndex(child); }
/** * Finds and returns the index of child node in the given parent's children * array * * @param child * The child node * @param parent * The parent node * @return the index */ public static int getChildIndex(Node child, Node parent) { if (child == null || child.getParentNode() != parent || child.getParentNode() == null) { return -1; } return getChildIndex(child); }
/** * Finds and returns the index of child node in the given parent's children * array * * @param child * The child node * @param parent * The parent node * @return the index */ public static int getChildIndex(Node child, Node parent) { if (child == null || child.getParentNode() != parent || child.getParentNode() == null) { return -1; } return getChildIndex(child); }