|
IcedTea-Web NetX |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.jnlp.util.XDesktopEntry
public class XDesktopEntry
This class builds a (freedesktop.org) desktop entry out of a JNLPFile
. This entry can be used to install desktop shortcuts. See xdg-desktop-icon
(1) and http://standards.freedesktop.org/desktop-entry-spec/latest/ for more
information
Field Summary | |
---|---|
static java.lang.String |
JAVA_ICON_NAME
|
Constructor Summary | |
---|---|
XDesktopEntry(JNLPFile file)
Create a XDesktopEntry for the given JNLP file |
Method Summary | |
---|---|
void |
createDesktopShortcut()
Create a desktop shortcut for this desktop entry |
java.io.Reader |
getContentsAsReader()
Returns the contents of the XDesktopEntry through the
Reader interface. |
int |
getIconSize()
Get the size of the icon (in pixels) for the desktop shortcut |
void |
setIconSize(int size)
Set the icon size to use for the desktop shortcut |
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.String JAVA_ICON_NAME
Constructor Detail |
---|
public XDesktopEntry(JNLPFile file)
file
- a JNLPFile
that indicates the application to launchMethod Detail |
---|
public java.io.Reader getContentsAsReader()
XDesktopEntry
through the
Reader
interface.
public int getIconSize()
public void setIconSize(int size)
size
- the size (in pixels) of the icon to use. Commonly used sizes
are of 16, 22, 32, 48, 64 and 128public void createDesktopShortcut()
|
IcedTea-Web NetX |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |