private void setNodesLinksVisible() { List objectNodeKeyList = new ArrayList(entityNavNodeMap.keySet()); Iterator objectNodeKeyItr = objectNodeKeyList.iterator(); while (objectNodeKeyItr.hasNext()) { ExtendedBasicNode objectNavNode = (ExtendedBasicNode) entityNavNodeMap.get((Integer) objectNodeKeyItr.next()); if (((IncrementalNode) objectNavNode).inLayout()) { objectNavNode.setVisible(true); } else { objectNavNode.setVisible(false); } } List navLinkKeyList = new ArrayList(navLinkMap.keySet()); Iterator navLinkKeyItr = navLinkKeyList.iterator(); while (navLinkKeyItr.hasNext()) { BasicNodeLink navLink = (BasicNodeLink) navLinkMap.get((String) navLinkKeyItr.next()); if (navLink.inLayout()) { navLink.setVisible(true); if (isDebugPrint && (navLink.getMidLabel() != null)) { navLink.getMidLabel().setVisible(true); } } else { navLink.setVisible(false); if (isDebugPrint && (navLink.getMidLabel() != null)) { navLink.getMidLabel().setVisible(false); } } } } // end setNodesLinksVisible
/** * <code>addNavigatorLinkNew</code> * * @param fromNode - <code>ExtendedBasicNode</code> - * @param link - <code>BasicNodeLink</code> - * @param linkType - <code>String</code> - * @return - <code>boolean</code> - */ protected final boolean addNavigatorLinkNew( final ExtendedBasicNode fromNode, final BasicNodeLink link, final String linkType) { boolean areLinksChanged = false; if (link != null) { // links are always behind any nodes // jGoDocument.addObjectAtHead( link); // jGoDocument.addObjectAtTail( link); jGoDocument.insertObjectBefore(jGoDocument.findObject(fromNode), link); link.setInLayout(true); link.incrLinkCount(); if (isDebugPrint) { System.err.println( linkType + " incr link: " + link.toString() + " to " + link.getLinkCount()); } areLinksChanged = true; } return areLinksChanged; } // end addNavigatorLinkNew