Revision 39058 branches/v2_0_0_prep/libraries/libFMap_mapcontext/src/org/gvsig/fmap/mapcontext/layers/vectorial/FLyrVect.java

View differences:

FLyrVect.java
111 111
/**
112 112
 * Capa b?sica Vectorial.
113 113
 * 
114
 * @author Fernando Gonz?lez Cort?s
115 114
 */
116 115

  
117 116
public class FLyrVect extends FLyrDefault implements VectorLayer,
......
159 158
    }
160 159
    
161 160
    /**
162
     * Inserta el DataStore a la capa.
161
     * Asigna el data-store a la capa.
162
     * Esta operacion no se deneria poder hacer desde fuera de la clase.
163 163
     * 
164
     * @param va
165
     *            VectorialAdapter.
166
     * 
167
     * @deprecated esto deber?a se ser protected
164
     * @param dataStore
165
     * @throws LoadLayerException
166
     * @deprecated use {@link #bindToDataStore(DataStore)}
168 167
     */
169 168
    public void setDataStore(DataStore dataStore) throws LoadLayerException {
169
    	bindToDataStore(dataStore);
170
    }
171
    
172
    /**
173
     * Enlaza la capa con el DataStore indicado.
174
     *  
175
     * @param dataStore
176
     * @throws LoadLayerException
177
     */
178
    protected void bindToDataStore(DataStore dataStore) throws LoadLayerException {
170 179
        if (this.featureStore != null && this.featureStore != dataStore) {
171 180
            this.featureStore.deleteObserver(this);
172 181
        }
......
454 463
			return;
455 464
		}
456 465
        try {
457
            this.setDataStore(store);
466
            this.bindToDataStore(store);
458 467
        } catch (LoadLayerException e) {
459 468
            throw new PersistenceException("While loading FLyrVect from state.",
460 469
                e);
......
642 651

  
643 652
    public FLayer cloneLayer() throws Exception {
644 653
        FLyrVect clonedLayer = new FLyrVect();
645
        clonedLayer.setDataStore(getDataStore());
654
        clonedLayer.bindToDataStore(getDataStore());
646 655
        // if (isJoined()) {
647 656
        // clonedLayer.setIsJoined(true);
648 657
        // }

Also available in: Unified diff