Package net.sourceforge.jnlp
Class InformationDesc
java.lang.Object
net.sourceforge.jnlp.InformationDesc
The information element.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInformationDesc
(Locale[] locales, boolean strict) Create an information element object. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Add an information item (description, icon, etc) under a specified key name.getDescription
(Object kind) getDescriptionStrict
(Object kind) getIconLocation
(Object kind, int width, int height) Returns the URL of the icon closest to the specified size and kind.IconDesc[]
Returns the icons specified by the JNLP file.protected Object
Locale[]
getTitle()
boolean
boolean
-
Field Details
-
ONE_LINE
http://docs.oracle.com/javase/6/docs/technotes/guides/javaws/developersguide/syntax.html -
SHORT
short description -
TOOLTIP
tooltip description -
DEFAULT
default description
-
-
Constructor Details
-
InformationDesc
Create an information element object.- Parameters:
locales
- the locales the information is forstrict
- whether parser was strict
-
-
Method Details
-
getTitle
- Returns:
- the application's title.
-
getVendor
- Returns:
- the application's vendor.
-
getHomepage
- Returns:
- the application's homepage.
-
getDescription
- Returns:
- the default description for the application.
-
getDescription
- Parameters:
kind
- one of Information.SHORT, Information.ONE_LINE, Information.TOOLTIP, Information.DEFAULT- Returns:
- the application's description of the specified type.
-
getDescriptionStrict
- Parameters:
kind
- one of Information.SHORT, Information.ONE_LINE, Information.TOOLTIP, Information.DEFAULT- Returns:
- the application's description of the specified type.
-
getIcons
Returns the icons specified by the JNLP file.- Parameters:
kind
- one of IconDesc.SELECTED, IconDesc.DISABLED, IconDesc.ROLLOVER, IconDesc.SPLASH, IconDesc.DEFAULT- Returns:
- an array of zero of more IconDescs of the specified icon type
-
getIconLocation
Returns the URL of the icon closest to the specified size and kind. This method will not return an icon smaller than the specified width and height unless there are no other icons available.- Parameters:
kind
- the kind of icon to getwidth
- desired width of iconheight
- desired height of icon- Returns:
- the closest icon by size or null if no icons declared
-
getLocales
- Returns:
- the locales for the information.
-
isOfflineAllowed
public boolean isOfflineAllowed()- Returns:
- whether offline execution allowed.
-
isSharingAllowed
public boolean isSharingAllowed()- Returns:
- whether the resources specified in the JNLP file may be shared by more than one instance in the same JVM (JNLP extension). This is an extension to the JNLP spec and will always return false for standard JNLP files.
-
getAssociations
- Returns:
- the associations specified in the JNLP file
-
getShortcut
- Returns:
- the shortcut specified by this JNLP file
-
getRelatedContents
- Returns:
- the related-contents specified by this JNLP file
-
getItem
- Parameters:
key
- key to find item- Returns:
- the last item matching the specified key.
-
getItems
- Parameters:
key
- key to find item- Returns:
- all items matching the specified key.
-
addItem
Add an information item (description, icon, etc) under a specified key name.- Parameters:
key
- key to place value tovalue
- value to be placed to key
-