Changeset 10893 in josm for trunk/src/org/openstreetmap/josm/gui/Notification.java
- Timestamp:
- 2016-08-24T23:13:14+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/Notification.java
r9221 r10893 32 32 public class Notification { 33 33 34 /** 35 * Default width of a notification 36 */ 34 37 public static final int DEFAULT_CONTENT_WIDTH = 350; 35 38 … … 59 62 60 63 private Component content; 61 private int duration ;64 private int duration = Notification.TIME_DEFAULT; 62 65 private Icon icon; 63 66 private String helpTopic; … … 67 70 */ 68 71 public Notification() { 69 duration = NotificationManager.defaultNotificationTime;72 // nothing to do. 70 73 } 71 74 … … 170 173 } 171 174 175 /** 176 * Gets the content component to use. 177 * @return The content 178 */ 172 179 public Component getContent() { 173 180 return content; 174 181 } 175 182 183 /** 184 * Gets the time the notification should be displayed 185 * @return The time to display the notification 186 */ 176 187 public int getDuration() { 177 188 return duration; 178 189 } 179 190 191 /** 192 * Gets the icon that should be displayed next to the notification 193 * @return The icon to display 194 */ 180 195 public Icon getIcon() { 181 196 return icon; 182 197 } 183 198 199 /** 200 * Gets the help topic for this notification 201 * @return The help topic 202 */ 184 203 public String getHelpTopic() { 185 204 return helpTopic;
Note:
See TracChangeset
for help on using the changeset viewer.