/** * Walks through the tree and sets the parent menu entry for each descendant. */ public void setParents() { if (children == null) { return; } for (final MenuEntryConfig child : children) { child.setParent(this); child.setParents(); } }
/** * Walks through the tree and sets the parent menu entry for each descendant. */ public void setParents() { if (children == null) { return; } for (final MenuEntryConfig child : children) { child.setParent(this); child.setParents(); } }