private void updateKeys() { final boolean LOG_ENABLED = LOGGER.isLoggable(Level.FINER); if (LOG_ENABLED) { LOGGER.finer("updateKeys() " + this); // NOI18N } ChildrenAdapter cha = nodeL; if (cha != null) { if (LOG_ENABLED) { LOGGER.finer(" getting original nodes"); // NOI18N } Node[] arr = original.getChildren().getNodes(); if (LOG_ENABLED) { LOGGER.finer(" setKeys(), keys: " + Arrays.toString(arr)); // NOI18N } setKeys(arr); if (!origSupport.isInitialized()) { origSupport.notifySetEntries(); } } }
/** Clears current keys, because all mirrored nodes disappeared. */ @Override protected void removeNotify() { setKeys(Collections.<Node>emptySet()); if (nodeL != null) { original.removeNodeListener(nodeL); nodeL = null; } }
/** Called to update the content of children. */ public void run () { Children ch = (Children)children.get (); if (ch != null) { Node[] arr = ch.original.getChildren ().getNodes (); ch.setKeys (arr); } }
/** * Implementation that ensures the original node is fully initialized * if optimal result is requested. * * @param optimalResult if <code>true</code>, the method will block * until the original node is fully initialized. * @since 3.9 */ public Node[] getNodes(boolean optimalResult) { if (optimalResult) { setKeys (original.getChildren ().getNodes (true)); } return getNodes(); } }
/** * Implementation that ensures the original node is fully initialized * if optimal result is requested. * * @param optimalResult if <code>true</code>, the method will block * until the original node is fully initialized. * @since 3.9 */ public Node[] getNodes(boolean optimalResult) { if (optimalResult) { setKeys (original.getChildren ().getNodes (true)); } return getNodes(); } }
/** Called to update the content of children. */ public void run () { Children ch = (Children)children.get (); if (ch != null) { Node[] arr = ch.original.getChildren ().getNodes (); ch.setKeys (arr); } }
/** Clears current keys, because all mirrored nodes disappeared. */ protected void removeNotify () { setKeys (Collections.EMPTY_SET); if (nodeL != null) { original.removeNodeListener (nodeL); nodeL = null; } }
/** Clears current keys, because all mirrored nodes disappeared. */ protected void removeNotify () { setKeys (Collections.EMPTY_SET); if (nodeL != null) { original.removeNodeListener (nodeL); nodeL = null; } }