Method Summary |
|
public String | getBasePath() Returns the base path of the shortcut depending on type. |
public String | getDirectoryCreated() Returns the path of the directory where the link file is stored, if it was necessary during
the previous save operation to create the directory. |
public String | getFileName() Returns the fully qualified file name under which the link is saved on disk. |
public int | getHotkey() |
public String | getIconLocation() |
public int | getLinkType() Gets the type of link types are:
maps from ShellLink-types to Shortcut-types. |
public Vector<String> | getProgramGroups(int userType) Returns a list of currently existing program groups, based on the requested type. |
public String | getProgramsFolder(int current_user) Gets the Folders where to place the program-groups and their shortcuts, for the given
usertype. |
public int | getShowCommand() |
public int | getUserType() |
public String | getWorkingDirectory() Gets the working directory for the link target. |
public void | initialize(int type, String name) This method initializes the object. |
public boolean | multipleUsers() Returns true if the target OS supports current user and all users. |
public void | save() Saves this link. |
public void | setArguments(String arguments) Sets the command line arguments that will be passed to the target when the link is activated. |
public void | setDescription(String description) Sets the description string that is used to identify the link in a menu or on the desktop. |
public void | setHotkey(int hotkey) Sets the link hotKey
Parameters: hotkey - incoming 2 byte hotkey is: high byte modifier: SHIFT = 0x01 CONTROL= 0x02 ALT = 0x04 EXT =0x08lower byte contains ascii letter. |
public void | setIconLocation(String path, int index) Sets the location of the icon that is shown for the shortcut on the desktop.
Parameters: path - a fully qualified file name of a file that contains the icon. Parameters: index - the index of the specific icon to use in the file. |
public void | setLinkName(String name) Sets the name shown in a menu or on the desktop for the link.
Parameters: name - The name that the link should display on a menu or on the desktop. |
public void | setLinkType(int type) Sets the type of link
Parameters: type - The type of link desired. |
public void | setProgramGroup(String groupName) Sets the name of the program group this ShellLinbk should be placed in. |
public void | setShowCommand(int show) Sets the show command that is passed to the target application when the link is activated.
The show command determines if the the window will be restored to the previous size,
minimized, maximized or visible at all. |
public void | setTargetPath(String path) Sets the absolute path to the shortcut target. |
public void | setUserType(int type) |
public void | setWorkingDirectory(String dir) Sets the working directory for the link target. |
public boolean | supported() Signals that this flavor of
com.izforge.izpack.util.os.Shortcut
supports the creation of shortcuts. |