Code example for Node

Methods: getParentNode

0
 
	@Override 
	public Object getParent(Object object) {
		if (BeansEditorUtils.isSpringStyleOutline()) { 
			Node node = (Node) object;
			return node.getParentNode();
		} 
		else { 
			return super.getParent(object);
		} 
	} 
 
	@Override 
	public boolean hasChildren(Object object) {
		if (BeansEditorUtils.isSpringStyleOutline()) { 
			Node node = (Node) object;
			for (Node child = node.getFirstChild(); child != null; child = child
					.getNextSibling()) {
				if (child.getNodeType() != Node.TEXT_NODE)
					return true; 
			}