Package net.sourceforge.jnlp
Class ShortcutDesc
java.lang.Object
net.sourceforge.jnlp.ShortcutDesc
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Always create a shortcutstatic final String
Create a desktop shortcut without prompting if the jnlp asks for itstatic final String
Always ask user whether to create a shortcutstatic final String
Ask user whether to create a shortcut but only if jnlp file asks for itstatic final String
Never create a shortcut -
Constructor Summary
ConstructorsConstructorDescriptionShortcutDesc
(boolean requiresOnline, boolean onDesktop) Create a new Shortcut descriptor -
Method Summary
-
Field Details
-
CREATE_NEVER
Never create a shortcut- See Also:
-
CREATE_ALWAYS
Always create a shortcut- See Also:
-
CREATE_ASK_USER
Always ask user whether to create a shortcut- See Also:
-
CREATE_ASK_USER_IF_HINTED
Ask user whether to create a shortcut but only if jnlp file asks for it- See Also:
-
CREATE_ALWAYS_IF_HINTED
Create a desktop shortcut without prompting if the jnlp asks for it- See Also:
-
-
Constructor Details
-
ShortcutDesc
public ShortcutDesc(boolean requiresOnline, boolean onDesktop) Create a new Shortcut descriptor- Parameters:
requiresOnline
- whether the shortcut requires connectivityonDesktop
- whether the shortcut wants to be placed on the desktop
-
-
Method Details
-
isOnline
public boolean isOnline()- Returns:
- whether the shortcut requires being online
-
isOnlineValue
public boolean isOnlineValue()For testing purposes. Verify if it have been parsed out correctly.- Returns:
- whether the shortcut requires being online.
-
onDesktop
public boolean onDesktop()- Returns:
- whether the shortcut should be placed on the desktop
-
toMenu
public boolean toMenu()- Returns:
- whether the shortcut should be placed to the menus
-
setMenu
Add a shortcut to the 'start menu' (whatever that means on gnome/kde/other ...)- Parameters:
menu
- if/what menu this shortcut should be added to
-
getMenu
- Returns:
- the menu this shortcut should be added to
-
deploymentJavawsShortcutToString
-