diff options
author | Jiri Vanek <[email protected]> | 2012-08-13 15:52:03 +0200 |
---|---|---|
committer | Jiri Vanek <[email protected]> | 2012-08-13 15:52:03 +0200 |
commit | 94049c8dd94caec6f2178e729893b2ba8cafbe74 (patch) | |
tree | 1f20174c59f6bd0e98d6549f07857afab19e7a19 /netx/net/sourceforge/jnlp/InformationDesc.java | |
parent | a0e3685615521759e08246d348dc6fbf58f8a6bc (diff) |
Added splashscreen implementation
Diffstat (limited to 'netx/net/sourceforge/jnlp/InformationDesc.java')
-rw-r--r-- | netx/net/sourceforge/jnlp/InformationDesc.java | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/netx/net/sourceforge/jnlp/InformationDesc.java b/netx/net/sourceforge/jnlp/InformationDesc.java index cec8964..f83329a 100644 --- a/netx/net/sourceforge/jnlp/InformationDesc.java +++ b/netx/net/sourceforge/jnlp/InformationDesc.java @@ -34,7 +34,8 @@ public class InformationDesc { // specification name. /** one-line description */ - public static final Object ONE_LINE = "oneline"; + /**http://docs.oracle.com/javase/6/docs/technotes/guides/javaws/developersguide/syntax.html**/ + public static final Object ONE_LINE = "one-line"; /** short description */ public static final Object SHORT = "short"; @@ -110,13 +111,24 @@ public class InformationDesc { * Information.TOOLTIP, Information.DEFAULT */ public String getDescription(Object kind) { - String result = (String) getItem("description-" + kind); + String result = getDescriptionStrict(kind); if (result == null) return (String) getItem("description-" + DEFAULT); else return result; } + /** + * Returns the application's description of the specified type. + * + * @param kind one of Information.SHORT, Information.ONE_LINE, + * Information.TOOLTIP, Information.DEFAULT + */ + public String getDescriptionStrict(Object kind) { + return (String) getItem("description-" + kind); + + } + /** * Returns the icons specified by the JNLP file. * |