public class XDesktopEntry
extends java.lang.Object
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
informationModifier and Type | Field and Description |
---|---|
static java.lang.String |
JAVA_ICON_NAME |
Constructor and Description |
---|
XDesktopEntry(JNLPFile file)
Create a XDesktopEntry for the given JNLP file
|
Modifier and Type | Method and Description |
---|---|
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
|
public static final java.lang.String JAVA_ICON_NAME
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()