public final class ShortcutDesc
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CREATE_ALWAYS
Always create a shortcut
|
static java.lang.String |
CREATE_ALWAYS_IF_HINTED
Create a desktop shortcut without prompting if the jnlp asks for it
|
static java.lang.String |
CREATE_ASK_USER
Always ask user whether to create a shortcut
|
static java.lang.String |
CREATE_ASK_USER_IF_HINTED
Ask user whether to create a shortcut but only if jnlp file asks for it
|
static java.lang.String |
CREATE_NEVER
Never create a shortcut
|
Constructor and Description |
---|
ShortcutDesc(boolean requiresOnline,
boolean onDesktop)
Create a new Shortcut descriptor
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
deploymentJavawsShortcutToString(java.lang.String i) |
MenuDesc |
getMenu() |
boolean |
isOnline() |
boolean |
onDesktop() |
void |
setMenu(MenuDesc menu)
Add a shortcut to the 'start menu'
(whatever that means on gnome/kde/other ...)
|
boolean |
toMenu() |
public static final java.lang.String CREATE_NEVER
public static final java.lang.String CREATE_ALWAYS
public static final java.lang.String CREATE_ASK_USER
public static final java.lang.String CREATE_ASK_USER_IF_HINTED
public static final java.lang.String CREATE_ALWAYS_IF_HINTED
public ShortcutDesc(boolean requiresOnline, boolean onDesktop)
requiresOnline
- whether the shortcut requires connectivityonDesktop
- whether the shortcut wants to be placed on the desktoppublic boolean isOnline()
public boolean onDesktop()
public boolean toMenu()
public void setMenu(MenuDesc menu)
menu
- if/what menu this shortcut should be added topublic MenuDesc getMenu()
public static java.lang.String deploymentJavawsShortcutToString(java.lang.String i)