Revision 46453 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/featureform/swing/impl/DefaultJFeaturesForm.java
DefaultJFeaturesForm.java | ||
---|---|---|
57 | 57 |
import org.gvsig.fmap.dal.feature.FeatureQuery; |
58 | 58 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
59 | 59 |
import org.gvsig.fmap.dal.feature.FeatureStoreNotification; |
60 |
import org.gvsig.fmap.dal.feature.FeatureType; |
|
60 | 61 |
import org.gvsig.fmap.dal.feature.paging.FeaturePagingHelper; |
61 | 62 |
import org.gvsig.fmap.dal.swing.AbstractDALActionFactory.AbstractDALActionContext; |
62 | 63 |
import org.gvsig.fmap.dal.swing.DALActionFactory; |
... | ... | |
310 | 311 |
DisposeUtils.disposeQuietly(action); |
311 | 312 |
} |
312 | 313 |
} |
314 |
if( this.panel!=null ) { |
|
315 |
this.panel.setVisible(false); |
|
316 |
} |
|
313 | 317 |
DisposeUtils.disposeQuietly(store); |
314 | 318 |
this.store = null; |
315 | 319 |
this.panel = null; |
... | ... | |
646 | 650 |
} |
647 | 651 |
winmgr.showWindow(this.asJComponent(), title, mode); |
648 | 652 |
} |
653 |
|
|
654 |
public void hideForm() { |
|
655 |
DisposeUtils.dispose(this); |
|
656 |
} |
|
649 | 657 |
|
650 | 658 |
private void saveChanges(JDynFormSet theFormSet) { |
651 | 659 |
I18nManager i18n = ToolsLocator.getI18nManager(); |
... | ... | |
878 | 886 |
public FeatureStore getFeatureStore() { |
879 | 887 |
return this.store; |
880 | 888 |
} |
889 |
|
|
890 |
public FeatureType getFeatureType() { |
|
891 |
if( this.store == null ) { |
|
892 |
return null; |
|
893 |
} |
|
894 |
return this.store.getDefaultFeatureTypeQuietly(); |
|
895 |
} |
|
881 | 896 |
|
882 | 897 |
private class FormSetListener implements JDynFormSetListener { |
883 | 898 |
|
Also available in: Unified diff