Revision 1594 trunk/org.gvsig.app.document.layout2.app/org.gvsig.app.document.layout2.app.mainplugin/src/main/java/org/gvsig/app/project/documents/layout/DefaultLayoutDocument.java
DefaultLayoutDocument.java | ||
---|---|---|
24 | 24 |
import java.util.Iterator; |
25 | 25 |
import org.gvsig.app.project.documents.AbstractDocument; |
26 | 26 |
import org.gvsig.app.project.documents.DocumentManager; |
27 |
import org.gvsig.app.project.documents.layout.fframes.FFrameView; |
|
28 |
import org.gvsig.app.project.documents.layout.fframes.IFFrame; |
|
27 | 29 |
import org.gvsig.tools.persistence.PersistentState; |
28 | 30 |
import org.gvsig.tools.persistence.exception.PersistenceException; |
29 | 31 |
|
... | ... | |
41 | 43 |
static final String LAYOUT_CONTEXT_OBJECT = "layoutContext"; |
42 | 44 |
|
43 | 45 |
private LayoutContext layoutContext = null; |
46 |
private boolean persistIndependent; |
|
44 | 47 |
|
45 | 48 |
public DefaultLayoutDocument(DocumentManager factory) { |
46 | 49 |
super(factory); |
... | ... | |
74 | 77 |
public Iterator iterator() { |
75 | 78 |
return this.layoutContext.iterator(); |
76 | 79 |
} |
80 |
|
|
81 |
@Override |
|
82 |
public void setPersistIndependent(boolean b) { |
|
83 |
this.persistIndependent = b; |
|
84 |
for (IFFrame frame : this.layoutContext.getAllFFrames()) { |
|
85 |
if (frame instanceof FFrameView) { |
|
86 |
FFrameView view = (FFrameView) frame; |
|
87 |
view.setPersistIndependent(b); |
|
88 |
} |
|
89 |
} |
|
90 |
|
|
91 |
} |
|
92 |
|
|
93 |
@Override |
|
94 |
public boolean isPersistIndependent() { |
|
95 |
return this.persistIndependent; |
|
96 |
} |
|
77 | 97 |
} |
Also available in: Unified diff