Пример #1
0
 /**
  * Copies all node information from <code>originalNode</code> into the current node. This method
  * is called from the <code>cloneNode</code> method which is, in turn, called by the <code>
  * cloneTree</code> method.
  *
  * <p>For any <i>NodeComponent</i> objects contained by the object being duplicated, each
  * <i>NodeComponent</i> object's <code>duplicateOnCloneTree</code> value is used to determine
  * whether the <i>NodeComponent</i> should be duplicated in the new node or if just a reference to
  * the current node should be placed in the new node. This flag can be overridden by setting the
  * <code>forceDuplicate</code> parameter in the <code>cloneTree</code> method to <code>true</code>
  * .
  *
  * @param originalNode the original node to duplicate.
  * @param forceDuplicate when set to <code>true</code>, causes the <code>duplicateOnCloneTree
  *     </code> flag to be ignored. When <code>false</code>, the value of each node's <code>
  *     duplicateOnCloneTree</code> variable determines whether NodeComponent data is duplicated or
  *     copied.
  * @see Node#cloneTree
  * @see Node#cloneNode
  * @see NodeComponent#setDuplicateOnCloneTree
  */
 @Override
 public void duplicateNode(Node originalNode, boolean forceDuplicate) {
   super.duplicateNode(originalNode, forceDuplicate);
 }