Changeset 2318 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2009-10-25T15:51:51+01:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/UrlLabel.java
r2250 r2318 48 48 } 49 49 50 /** 51 * Sets the URL to be visited if the user clicks on this URL label. If null, the 52 * label turns into a normal label without hyperlink. 53 * 54 * @param url the url. Can be null. 55 */ 50 56 public void setUrl(String url) { 51 this.url = url == null ? "" : url;57 this.url = url; 52 58 refresh(); 53 59 } 54 60 61 /** 62 * Sets the text part of the URL label. Defaults to the empty string if description is null. 63 * 64 * @param description the description 65 */ 55 66 public void setDescription(String description) { 56 67 this.description = description == null? "" : description; 68 this.description = this.description.replace("&", "&").replace(">", ">").replace("<", "<"); 57 69 refresh(); 58 70 }
Note:
See TracChangeset
for help on using the changeset viewer.
