Revision 3524 branches/gvSIG_WMSv2/extensions/extWMS/src/com/iver/cit/gvsig/fmap/layers/WMSLayerNode.java

View differences:

WMSLayerNode.java
43 43
*
44 44
* $Id$
45 45
* $Log$
46
* Revision 1.1.2.3  2005-12-29 08:26:54  jaume
46
* Revision 1.1.2.4  2005-12-30 08:56:19  jaume
47
* *** empty log message ***
48
*
49
* Revision 1.1.2.3  2005/12/29 08:26:54  jaume
47 50
* some gui issues where fixed
48 51
*
49 52
* Revision 1.1.2.2  2005/12/26 16:51:40  jaume
......
63 66
import java.util.Hashtable;
64 67
import java.util.Vector;
65 68

  
69
import org.gvsig.remoteClient.wms.WMSLayer;
70

  
66 71
/**
67 72
 * Class defining the node of the layer tree of a common WMS service.
68 73
 * @author jaume
......
73 78
    private String title;
74 79
    private Vector srs;
75 80
    private ArrayList styles;
76
    private ArrayList children;
77 81
    private boolean queryable;
78 82
    private boolean transparency;
79 83
    
80 84
    
85
    private ArrayList children;
86
    private WMSLayerNode parent;
87
    
81 88
    /**
82 89
     * @return Returns the name.
83 90
     */
......
119 126
     * @return Returns the srs.
120 127
     */
121 128
    public Vector getAllSrs() {
129
        if ((srs.size() == 0) && parent!=null)
130
            return parent.getAllSrs();
122 131
        return srs;
123 132
    }
124 133
    /**
......
156 165
        this.children = children;
157 166
    }
158 167
    
168
    /**
169
     * returns the layer whose this is son of. 
170
     * @return
171
     */
172
    public WMSLayerNode getParent(){
173
        return parent;
174
    }
175
    /**
176
     * @param parentNode
177
     */
178
    public void setParent(WMSLayerNode parentNode) {
179
        this.parent = parentNode;
180
    }
181
    
159 182
    public String toString(){
160 183
        return getTitle();
161 184
    }
......
185 208
            return title;
186 209
        }
187 210
    }
211

  
212
    
188 213
}

Also available in: Unified diff