001    // GraphLab Project: http://graphlab.sharif.edu
002    // Copyright (C) 2008 Mathematical Science Department of Sharif University of Technology
003    // Distributed under the terms of the GNU General Public License (GPL): http://www.gnu.org/licenses/
004    package graphlab.ui.components.gpropertyeditor.editors;
005    
006    import graphlab.ui.PortableNotifiableAttributeSetImpl;
007    import graphlab.ui.components.gpropertyeditor.GPropertyEditor;
008    
009    import javax.swing.*;
010    import java.util.HashMap;
011    
012    /**
013     * @author azin azadi
014     */
015    //todo: complete it!
016    public class GHashMapEditor extends GDialogEditor<HashMap> {
017        GPropertyEditor ged = new GPropertyEditor();
018    
019        public JComponent getComponent(HashMap initialValue) {
020            return null;
021        }
022    
023        public HashMap getEditorValue() {
024            return null;
025        }
026    
027        public void setEditorValue(HashMap value) {
028    
029        }
030    
031        private PortableNotifiableAttributeSetImpl hashmap2NotifiableAttributeSetx(HashMap h) {
032            PortableNotifiableAttributeSetImpl a = new PortableNotifiableAttributeSetImpl();
033            for (Object o : h.keySet()) {
034    //            a.putAtr(o, h.get(o));
035            }
036            return null;
037        }
038    }