|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--netx.jnlp.InformationDesc
The information element.
Field Summary | |
static java.lang.Object |
DEFAULT
default description |
static java.lang.Object |
ONE_LINE
one-line description |
static java.lang.Object |
SHORT
short description |
static java.lang.Object |
TOOLTIP
tooltip description |
Constructor Summary | |
InformationDesc(JNLPFile jnlpFile,
java.util.Locale[] locales)
Create an information element object. |
Method Summary | |
protected void |
addItem(java.lang.String key,
java.lang.Object value)
Add an information item (description, icon, etc) under a specified key name. |
java.lang.String |
getDescription()
Returns the default description for the application. |
java.lang.String |
getDescription(java.lang.Object kind)
Returns the application's description of the specified type. |
java.net.URL |
getHomepage()
Returns the application's homepage. |
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)
Returns the last item matching the specified key. |
protected java.util.List |
getItems(java.lang.Object key)
Returns all items matching the specified key. |
JNLPFile |
getJNLPFile()
Returns the JNLPFile the information is for. |
java.util.Locale[] |
getLocales()
Returns the locales for the information. |
java.lang.String |
getTitle()
Returns the application's title. |
java.lang.String |
getVendor()
Returns the application's vendor. |
boolean |
isOfflineAllowed()
Returns whether offline execution allowed. |
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). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
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
Constructor Detail |
public InformationDesc(JNLPFile jnlpFile, java.util.Locale[] locales)
jnlpFile
- file that the information is forlocale
- the the information is forMethod Detail |
public 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 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 JNLPFile getJNLPFile()
public boolean isOfflineAllowed()
public boolean isSharingAllowed()
protected java.lang.Object getItem(java.lang.Object key)
protected java.util.List getItems(java.lang.Object key)
protected void addItem(java.lang.String key, java.lang.Object value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |