Now uses Version instead of String. Added @Property for IMAGE_PATH

This commit is contained in:
nathan 2017-07-22 14:52:22 +02:00
parent 53f7b6d4ff
commit 285a84ac9d

View File

@ -28,7 +28,9 @@ import javax.swing.ImageIcon;
import dorkbox.util.ActionHandler; import dorkbox.util.ActionHandler;
import dorkbox.util.LocationResolver; import dorkbox.util.LocationResolver;
import dorkbox.util.Property;
import dorkbox.util.SwingUtil; import dorkbox.util.SwingUtil;
import dorkbox.util.Version;
/** /**
* Popup notification messages, similar to the popular "Growl" notification system on macosx, that display in the corner of the monitor. * Popup notification messages, similar to the popular "Growl" notification system on macosx, that display in the corner of the monitor.
@ -54,6 +56,7 @@ class Notify {
/** /**
* Location of the dialog image resources. By default they must be in the 'resources' directory relative to the application * Location of the dialog image resources. By default they must be in the 'resources' directory relative to the application
*/ */
@Property
public static String IMAGE_PATH = "resources"; public static String IMAGE_PATH = "resources";
private static Map<String, BufferedImage> imageCache = new HashMap<String, BufferedImage>(4); private static Map<String, BufferedImage> imageCache = new HashMap<String, BufferedImage>(4);
@ -63,8 +66,8 @@ class Notify {
* Gets the version number. * Gets the version number.
*/ */
public static public static
String getVersion() { Version getVersion() {
return "2.20"; return new Version("2.20");
} }
/** /**