Class ShortcutDesc

java.lang.Object
net.sourceforge.jnlp.ShortcutDesc

public final class ShortcutDesc extends Object
  • Field Details

    • CREATE_NEVER

      public static final String CREATE_NEVER
      Never create a shortcut
      See Also:
    • CREATE_ALWAYS

      public static final String CREATE_ALWAYS
      Always create a shortcut
      See Also:
    • CREATE_ASK_USER

      public static final String CREATE_ASK_USER
      Always ask user whether to create a shortcut
      See Also:
    • CREATE_ASK_USER_IF_HINTED

      public static final String 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

      public static final String 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 connectivity
      onDesktop - 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

      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 String deploymentJavawsShortcutToString(String i)