public class InformationDesc
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.Object |
DEFAULT
default description
|
static java.lang.Object |
ONE_LINE
http://docs.oracle.com/javase/6/docs/technotes/guides/javaws/developersguide/syntax.html
|
static java.lang.Object |
SHORT
short description
|
static java.lang.Object |
TOOLTIP
tooltip description
|
Constructor and Description |
---|
InformationDesc(java.util.Locale[] locales,
boolean strict)
Create an information element object.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addItem(java.lang.String key,
java.lang.Object value)
Add an information item (description, icon, etc) under a
specified key name.
|
AssociationDesc[] |
getAssociations() |
java.lang.String |
getDescription() |
java.lang.String |
getDescription(java.lang.Object kind) |
java.lang.String |
getDescriptionStrict(java.lang.Object kind) |
java.net.URL |
getHomepage() |
java.net.URL |
getIconLocation(java.lang.Object kind,
int width,
int height)
Returns the URL of the icon closest to the specified size and
kind.
|
IconDesc[] |
getIcons(java.lang.Object kind)
Returns the icons specified by the JNLP file.
|
protected java.lang.Object |
getItem(java.lang.Object key) |
protected java.util.List<java.lang.Object> |
getItems(java.lang.Object key) |
java.util.Locale[] |
getLocales() |
RelatedContentDesc[] |
getRelatedContents() |
ShortcutDesc |
getShortcut() |
java.lang.String |
getTitle() |
java.lang.String |
getVendor() |
boolean |
isOfflineAllowed() |
boolean |
isSharingAllowed() |
public static final java.lang.Object ONE_LINE
public static final java.lang.Object SHORT
public static final java.lang.Object TOOLTIP
public static final java.lang.Object DEFAULT
public InformationDesc(java.util.Locale[] locales, boolean strict)
locales
- the locales the information is forstrict
- whether parser was strictpublic java.lang.String getTitle()
public java.lang.String getVendor()
public java.net.URL getHomepage()
public java.lang.String getDescription()
public java.lang.String getDescription(java.lang.Object kind)
kind
- one of Information.SHORT, Information.ONE_LINE,
Information.TOOLTIP, Information.DEFAULTpublic java.lang.String getDescriptionStrict(java.lang.Object kind)
kind
- one of Information.SHORT, Information.ONE_LINE,
Information.TOOLTIP, Information.DEFAULTpublic IconDesc[] getIcons(java.lang.Object kind)
kind
- one of IconDesc.SELECTED, IconDesc.DISABLED,
IconDesc.ROLLOVER, IconDesc.SPLASH, IconDesc.DEFAULTpublic java.net.URL getIconLocation(java.lang.Object kind, int width, int height)
kind
- the kind of icon to getwidth
- desired width of iconheight
- desired height of iconpublic java.util.Locale[] getLocales()
public boolean isOfflineAllowed()
public boolean isSharingAllowed()
public AssociationDesc[] getAssociations()
public ShortcutDesc getShortcut()
public RelatedContentDesc[] getRelatedContents()
protected java.lang.Object getItem(java.lang.Object key)
key
- key to find itemprotected java.util.List<java.lang.Object> getItems(java.lang.Object key)
key
- key to find itemprotected void addItem(java.lang.String key, java.lang.Object value)
key
- key to place value tovalue
- value to be placed to key