Revision 3159 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/layout/fframes/FFrameNorth.java
FFrameNorth.java | ||
---|---|---|
53 | 53 |
*/ |
54 | 54 |
public class FFrameNorth extends FFramePicture implements IFFrameViewDependence { |
55 | 55 |
private FFrameView fframeview; |
56 |
private int dependenceIndex; |
|
56 |
private int dependenceIndex=-1;
|
|
57 | 57 |
|
58 | 58 |
/** |
59 | 59 |
* Inserts FFrameView to be able to relate this with the image. |
... | ... | |
94 | 94 |
public XMLEntity getXMLEntity() { |
95 | 95 |
XMLEntity xml = super.getXMLEntity(); |
96 | 96 |
xml.putProperty("type", Layout.RECTANGLENORTH); |
97 |
if (fframeview != null){ |
|
97 | 98 |
Layout layout = fframeview.getLayout(); |
98 |
if (layout != null){ |
|
99 |
|
|
99 | 100 |
IFFrame[] fframes = layout.getAllFFrames(); |
100 | 101 |
|
101 | 102 |
for (int i = 0; i < fframes.length; i++) { |
... | ... | |
126 | 127 |
* @param fframes Other FFrames. |
127 | 128 |
*/ |
128 | 129 |
public void initDependence(IFFrame[] fframes) { |
130 |
if (dependenceIndex!=-1) |
|
129 | 131 |
fframeview = (FFrameView) fframes[dependenceIndex]; |
130 | 132 |
} |
131 | 133 |
} |
Also available in: Unified diff