Revision 42512

View differences:

trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.swing/org.gvsig.fmap.dal.swing.api/src/main/java/org/gvsig/featureform/swing/FeatureFormDefinitionsProvider.java
11 11

  
12 12
public interface FeatureFormDefinitionsProvider extends Iterable<Entry> {
13 13
    
14
    public interface Entry {
14
    public interface Entry extends Comparable<Entry>{
15 15
        public DynClass getDynClass();
16 16
        public String getKey();
17 17
        public String getXml();
18
        public boolean setXml(String xml);
18 19
    }
19 20
    
20
    public void put(FeatureStore store) throws DataException, IOException;
21
    
22
    public DynClass get(FeatureStore store) throws DataException;
21
    public Entry get(FeatureStore store) throws DataException;
23 22

  
24
    public Entry getEntry(FeatureStore store) throws DataException;
23
    public void put(Entry entry) throws DataException, IOException;
25 24

  
25
    @Override
26 26
    public Iterator<Entry> iterator();
27 27

  
28
    public boolean check(Entry entry, String xml);
28
    public void put(FeatureStore store) throws DataException, IOException;
29
    
30
    public DynClass getDynClass(FeatureStore store) throws DataException;
29 31

  
30
    public boolean update(Entry entry, String xml);
31 32
}
trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.swing/org.gvsig.fmap.dal.swing.impl/src/main/java/org/gvsig/fmap/dal/swing/impl/DefaultDataSwingManager.java
27 27

  
28 28
import org.gvsig.featureform.swing.JFeatureForm;
29 29
import org.gvsig.featureform.swing.impl.DefaultJFeatureForm;
30
import org.gvsig.fmap.dal.exception.DataException;
31 30
import org.gvsig.fmap.dal.feature.FeatureStore;
32 31
import org.gvsig.fmap.dal.swing.DataSwingManager;
33 32
import org.gvsig.fmap.dal.swing.impl.jdbc.DefaultJDBCConnectionPanel;
34 33
import org.gvsig.fmap.dal.swing.impl.queryfilter.DefaultQueryFilterExpresion;
35 34
import org.gvsig.fmap.dal.swing.jdbc.JDBCConnectionPanel;
36 35
import org.gvsig.fmap.dal.swing.queryfilter.QueryFilterExpresion;
37
import org.gvsig.tools.service.ServiceException;
38 36

  
39 37

  
40 38
/**
......
46 44

  
47 45
    private FeatureFormDefinitionsProvider featureFormDefinitionsProvider = null;
48 46
            
47
    @Override
49 48
    public JFeatureForm createJFeatureForm(FeatureStore store) throws CreateJFeatureFormException {
50 49
        DefaultJFeatureForm form = new DefaultJFeatureForm();
51 50
        try {
52 51
            if( featureFormDefinitionsProvider!=null ) {
53
                form.bind(store, this.featureFormDefinitionsProvider.get(store));
52
                form.bind(store, this.featureFormDefinitionsProvider.getDynClass(store));
54 53
            } else {
55 54
                form.bind(store);
56 55
            }
57
        } catch (ServiceException e) {
56
        } catch (Exception e) {
58 57
            throw new CreateJFeatureFormException(e);
59
        } catch (DataException e) {
60
            throw new CreateJFeatureFormException(e);
61 58
        }
62 59
        return form;
63 60
    }
......
66 63
        this.featureFormDefinitionsProvider = provider;
67 64
    }
68 65

  
66
    @Override
69 67
    public FeatureFormDefinitionsProvider getFeatureFormDefinitionsProvider() {
70 68
        return this.featureFormDefinitionsProvider;
71 69
    }
72 70

  
71
    @Override
73 72
    public JDBCConnectionPanel createJDBCConnectionPanel() {
74 73
        JDBCConnectionPanel x = new DefaultJDBCConnectionPanel();
75 74
        return x;
76 75
    }
77 76

  
77
    @Override
78 78
    public QueryFilterExpresion createQueryFilterExpresion(FeatureStore store) {
79 79
        return new DefaultQueryFilterExpresion(store);
80 80
    }

Also available in: Unified diff