java.lang.Object
net.adoptopenjdk.icedteaweb.jnlp.element.information.ShortcutDesc

public final class ShortcutDesc extends Object
  • Field Details

  • Constructor Details

    • ShortcutDesc

      public ShortcutDesc(boolean requiresOnline, boolean installed, boolean onDesktop)
      Create a new Shortcut descriptor
      Parameters:
      requiresOnline - whether the shortcut requires connectivity
      installed - the application's preference for being considered installed
      onDesktop - whether the shortcut wants to be placed on the desktop
  • Method Details

    • isInstall

      public boolean isInstall()
      Returns:
      whether the application prefers being considered installed.
    • 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)