package org.cristalise.gui.tabs.collection; import javax.swing.JPanel; import org.cristalise.gui.MainFrame; import org.cristalise.kernel.collection.Collection; import org.cristalise.kernel.collection.CollectionMember; import org.cristalise.kernel.entity.proxy.ItemProxy; import org.cristalise.kernel.process.Gateway; import org.cristalise.kernel.utils.Logger; /************************************************************************** * * $Revision: 1.1 $ * $Date: 2004/08/10 07:56:08 $ * * Copyright (C) 2003 CERN - European Organization for Nuclear Research * All rights reserved. **************************************************************************/ public abstract class CollectionView extends JPanel { protected Collection thisColl; protected ItemProxy item; public CollectionView() { super(); } public void setItem(ItemProxy item) { this.item = item; } public abstract void setCollection(Collection coll); protected void saveCollection() { try { String[] params = new String[1]; params[0] = Gateway.getMarshaller().marshall(thisColl); MainFrame.userAgent.execute(item, "AddC2KObject", params); } catch (Exception e) { Logger.error(e); } } }