diff src/treecms/api/NodeData.java @ 15:22cd920986c5

commit
author misaka
date Tue, 17 May 2011 21:25:17 +0900
parents 8bf59f161b23
children
line wrap: on
line diff
--- a/src/treecms/api/NodeData.java	Tue May 17 18:44:14 2011 +0900
+++ b/src/treecms/api/NodeData.java	Tue May 17 21:25:17 2011 +0900
@@ -21,9 +21,19 @@
 	private NodeChildrenImpl<T> m_children;
 	private NodeAttributesImpl m_attrs;
 	
+	public NodeData()
+	{
+		this(null,null);
+	}
+	
+	public NodeData(NodeData<T> _newData)
+	{
+		this(_newData.m_children,_newData.m_attrs);
+	}
+	
 	public NodeData(NodeChildren<T> _children,NodeAttributes _attrs)
 	{
-		m_children = new NodeChildrenImpl<T>();
+		m_children = new NodeChildrenImpl<T>(_children);
 		m_attrs = new NodeAttributesImpl();
 	}