Ignore:
Timestamp:
2016-08-24T23:13:14+02:00 (8 years ago)
Author:
Don-vip
Message:

fix #13447 - Clean notification manager, merge properties and remove unneded action (patch by michael2402) - gsoc-core

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/Notification.java

    r9221 r10893  
    3232public class Notification {
    3333
     34    /**
     35     * Default width of a notification
     36     */
    3437    public static final int DEFAULT_CONTENT_WIDTH = 350;
    3538
     
    5962
    6063    private Component content;
    61     private int duration;
     64    private int duration = Notification.TIME_DEFAULT;
    6265    private Icon icon;
    6366    private String helpTopic;
     
    6770     */
    6871    public Notification() {
    69         duration = NotificationManager.defaultNotificationTime;
     72        // nothing to do.
    7073    }
    7174
     
    170173    }
    171174
     175    /**
     176     * Gets the content component to use.
     177     * @return The content
     178     */
    172179    public Component getContent() {
    173180        return content;
    174181    }
    175182
     183    /**
     184     * Gets the time the notification should be displayed
     185     * @return The time to display the notification
     186     */
    176187    public int getDuration() {
    177188        return duration;
    178189    }
    179190
     191    /**
     192     * Gets the icon that should be displayed next to the notification
     193     * @return The icon to display
     194     */
    180195    public Icon getIcon() {
    181196        return icon;
    182197    }
    183198
     199    /**
     200     * Gets the help topic for this notification
     201     * @return The help topic
     202     */
    184203    public String getHelpTopic() {
    185204        return helpTopic;
Note: See TracChangeset for help on using the changeset viewer.