Revision 5442 trunk/extensions/extWMS/src/com/iver/cit/gvsig/fmap/layers/WMSLayerNode.java
WMSLayerNode.java | ||
---|---|---|
43 | 43 |
* |
44 | 44 |
* $Id$ |
45 | 45 |
* $Log$ |
46 |
* Revision 1.7 2006-05-25 10:28:12 jaume
|
|
46 |
* Revision 1.8 2006-05-25 10:35:09 jaume
|
|
47 | 47 |
* *** empty log message *** |
48 | 48 |
* |
49 |
* Revision 1.7 2006/05/25 10:28:12 jaume |
|
50 |
* *** empty log message *** |
|
51 |
* |
|
49 | 52 |
* Revision 1.6 2006/03/21 16:02:06 jaume |
50 | 53 |
* *** empty log message *** |
51 | 54 |
* |
... | ... | |
404 | 407 |
setSelectedStyleByIndex(-1); |
405 | 408 |
} |
406 | 409 |
|
407 |
public void setKeywords(ArrayList keywords) { |
|
408 |
this.keywords = (ArrayList) keywords.clone(); |
|
410 |
public void addKeyword(String keyword) { |
|
411 |
if (keywords == null) |
|
412 |
keywords = new ArrayList(); |
|
413 |
keywords.add(keyword); |
|
409 | 414 |
} |
410 | 415 |
|
411 | 416 |
public String toString(){ |
... | ... | |
434 | 439 |
clone.selectedStyleIndex = this.selectedStyleIndex; |
435 | 440 |
clone.keywords = (ArrayList) this.keywords.clone(); |
436 | 441 |
|
442 |
if (keywords != null) { |
|
443 |
clone.keywords = new ArrayList(keywords.size()); |
|
444 |
for (int i = 0; i < keywords.size(); i++) { |
|
445 |
clone.keywords.add((String) keywords.get(i)); |
|
446 |
} |
|
447 |
} |
|
437 | 448 |
if (styles!=null) |
438 | 449 |
for (int i=0; i<styles.size(); i++){ |
439 | 450 |
FMapWMSStyle sty = (FMapWMSStyle) ((FMapWMSStyle) this.styles.get(i)).clone(); |
Also available in: Unified diff