Revision 235
trunk/org.gvsig.app.document.layout2.app/org.gvsig.app.document.layout2.app.mainplugin/src/main/java/org/gvsig/app/project/documents/layout/fframes/FFrameView.java | ||
---|---|---|
115 | 115 |
private static final String ENVELOPE_FIELD = "envelope"; |
116 | 116 |
private static final String SHOWGRID_FIELD = "showGrid"; |
117 | 117 |
private static final String GRID_FIELD = "gridview"; |
118 |
private static final String HAS_TOC = "hasToc"; |
|
118 |
private static final String HAS_TOC_FIELD = "hasToc";
|
|
119 | 119 |
private static final String LAYER_SYNC_FIELD = "layerSync"; |
120 | 120 |
private static final String EXTENT_SYNC_FIELD = "extentSync"; |
121 | 121 |
// following fields are unused - they are kept for backward-compatibility |
... | ... | |
832 | 832 |
"FFrameView persistence definition", null, null); |
833 | 833 |
definition.extend(manager |
834 | 834 |
.getDefinition(FFrame.PERSISTENCE_DEFINITION_NAME)); |
835 |
|
|
836 |
definition.addDynFieldInt(EXTENSION_FIELD).setMandatory(false); |
|
837 | 835 |
definition.addDynFieldInt(QUALITY_FIELD).setMandatory(true); |
838 | 836 |
definition.addDynFieldInt(MAPUNITS_FIELD).setMandatory(true); |
839 | 837 |
definition.addDynFieldDouble(SCALE_FIELD).setMandatory(false); |
... | ... | |
844 | 842 |
definition.addDynFieldBoolean(SHOWGRID_FIELD).setMandatory(true); |
845 | 843 |
definition.addDynFieldObject(GRID_FIELD) |
846 | 844 |
.setClassOfValue(IFFrame.class).setMandatory(false); |
847 |
definition.addDynFieldBoolean(HAS_TOC).setMandatory(false); |
|
845 |
definition.addDynFieldBoolean(HAS_TOC_FIELD).setMandatory(false); |
|
846 |
definition.addDynFieldBoolean(EXTENT_SYNC_FIELD).setMandatory(false); |
|
847 |
definition.addDynFieldBoolean(LAYER_SYNC_FIELD).setMandatory(false); |
|
848 | 848 |
// unused fields, kept for backward compatibility |
849 | 849 |
definition.addDynFieldInt(MODE_FIELD).setMandatory(false); |
850 | 850 |
definition.addDynFieldInt(TYPESCALE_FIELD).setMandatory(false); |
... | ... | |
852 | 852 |
definition.addDynFieldObject(MAPCONTEXT_FIELD) |
853 | 853 |
.setClassOfValue(MapContext.class).setMandatory(false); |
854 | 854 |
definition.addDynFieldInt(VIEWING_FIELD).setMandatory(false); |
855 |
definition.addDynFieldInt(EXTENSION_FIELD).setMandatory(false); |
|
855 | 856 |
} |
856 | 857 |
} |
857 | 858 |
|
... | ... | |
873 | 874 |
syncLayers = true; |
874 | 875 |
} |
875 | 876 |
quality = state.getInt(QUALITY_FIELD); |
876 |
syncLayers = state.getBoolean(BLINKED_FIELD); |
|
877 | 877 |
mapUnits = state.getInt(MAPUNITS_FIELD);; |
878 | 878 |
viewDocument = (ViewDocument) state.get(VIEW_FIELD); |
879 |
if (state.hasValue(HAS_TOC)) { |
|
880 |
this.b_hasToc = state.getBoolean(HAS_TOC); |
|
879 |
if (state.hasValue(HAS_TOC_FIELD)) {
|
|
880 |
this.b_hasToc = state.getBoolean(HAS_TOC_FIELD);
|
|
881 | 881 |
} |
882 | 882 |
if (viewDocument!=null) { |
883 | 883 |
this.setView(viewDocument); |
... | ... | |
908 | 908 |
state.set(QUALITY_FIELD, quality); |
909 | 909 |
state.set(MAPUNITS_FIELD, mapUnits); |
910 | 910 |
state.set(VIEW_FIELD, viewDocument); |
911 |
state.set(HAS_TOC, b_hasToc); |
|
911 |
state.set(HAS_TOC_FIELD, b_hasToc);
|
|
912 | 912 |
|
913 | 913 |
if (getMapContext() != null |
914 | 914 |
&& getMapContext().getViewPort().getEnvelope() != null) { |
Also available in: Unified diff