Package net.sourceforge.jnlp
Class ShortcutDesc
- java.lang.Object
-
- net.sourceforge.jnlp.ShortcutDesc
-
public final class ShortcutDesc extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCREATE_ALWAYSAlways create a shortcutstatic java.lang.StringCREATE_ALWAYS_IF_HINTEDCreate a desktop shortcut without prompting if the jnlp asks for itstatic java.lang.StringCREATE_ASK_USERAlways ask user whether to create a shortcutstatic java.lang.StringCREATE_ASK_USER_IF_HINTEDAsk user whether to create a shortcut but only if jnlp file asks for itstatic java.lang.StringCREATE_NEVERNever create a shortcut
-
Constructor Summary
Constructors Constructor Description ShortcutDesc(boolean requiresOnline, boolean onDesktop)Create a new Shortcut descriptor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.StringdeploymentJavawsShortcutToString(java.lang.String i)MenuDescgetMenu()booleanisOnline()booleanisOnlineValue()For testing purposes.booleanonDesktop()voidsetMenu(MenuDesc menu)Add a shortcut to the 'start menu' (whatever that means on gnome/kde/other ...)booleantoMenu()
-
-
-
Field Detail
-
CREATE_NEVER
public static final java.lang.String CREATE_NEVER
Never create a shortcut- See Also:
- Constant Field Values
-
CREATE_ALWAYS
public static final java.lang.String CREATE_ALWAYS
Always create a shortcut- See Also:
- Constant Field Values
-
CREATE_ASK_USER
public static final java.lang.String CREATE_ASK_USER
Always ask user whether to create a shortcut- See Also:
- Constant Field Values
-
CREATE_ASK_USER_IF_HINTED
public static final java.lang.String CREATE_ASK_USER_IF_HINTED
Ask user whether to create a shortcut but only if jnlp file asks for it- See Also:
- Constant Field Values
-
CREATE_ALWAYS_IF_HINTED
public static final java.lang.String CREATE_ALWAYS_IF_HINTED
Create a desktop shortcut without prompting if the jnlp asks for it- See Also:
- Constant Field Values
-
-
Method Detail
-
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
public void setMenu(MenuDesc menu)
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
public MenuDesc getMenu()
- Returns:
- the menu this shortcut should be added to
-
deploymentJavawsShortcutToString
public static java.lang.String deploymentJavawsShortcutToString(java.lang.String i)
-
-