1 26 27 29 package de.nava.informa.impl.basic; 30 31 import java.net.URL ; 32 import de.nava.informa.core.ImageIF; 33 34 39 public class Image implements ImageIF, java.io.Serializable { 40 41 private long id; 42 private String title; 43 private String description; 44 private URL location; 45 private URL link; 46 private int width; 47 private int height; 48 49 public Image() { 50 this("[Unknown Image]", null, null); 51 } 52 53 public Image(String title, URL location, URL link) { 54 this.id = IdGenerator.getInstance().getId(); 55 this.title = title; 56 this.location = location; 57 this.link = link; 58 } 59 60 64 public long getId() { 65 return id; 66 } 67 68 public void setId(long id) { 69 this.id = id; 70 } 71 72 public String getTitle() { 73 return title; 74 } 75 76 public void setTitle(String title) { 77 this.title = title; 78 } 79 80 public String getDescription() { 81 return description; 82 } 83 84 public void setDescription(String description) { 85 this.description = description; 86 } 87 88 public URL getLocation() { 89 return location; 90 } 91 92 public void setLocation(URL location) { 93 this.location = location; 94 } 95 96 public URL getLink() { 97 return link; 98 } 99 100 public void setLink(URL link) { 101 this.link = link; 102 } 103 104 public int getWidth() { 105 return width; 106 } 107 108 public void setWidth(int width) { 109 this.width = width; 110 } 111 112 public int getHeight() { 113 return height; 114 } 115 116 public void setHeight(int height) { 117 this.height = height; 118 } 119 120 } 121 | Popular Tags |