Copying an item in Java classes

Use copyItemToDocument in Item to copy the current item to another document. Use copyAllItems in Document to copy all items in the current document to another document.

Use copyItem in Document to copy an item to another item in the same document.

After copying an item, you must call save for the Document object containing the new item or the update is lost when the program exits.