public class JShellLink
extends java.lang.Object
Constructor and Description |
---|
JShellLink()
Create a JShellLink object with no values filled in.
|
JShellLink(java.lang.String folder,
java.lang.String name)
Create a JShellLink object for a specified location.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getArguments() |
java.lang.String |
getDescription() |
static java.lang.String |
getDirectory(java.lang.String dirtype)
Get the requested directory.
|
java.lang.String |
getFolder() |
int |
getIconIndex() |
java.lang.String |
getIconLocation() |
java.lang.String |
getName() |
java.lang.String |
getPath() |
java.lang.String |
getWorkingDirectory() |
void |
load()
Load a shortcut from disk.
|
static void |
main(java.lang.String[] argv) |
void |
save()
Write out this shortcut to disk.
|
void |
setArguments(java.lang.String arguments)
Set the arguments for this shortcut.
|
void |
setDescription(java.lang.String description)
Set the description for this shortcut.
|
void |
setIconIndex(int iconIndex)
Set the icon index for this shortcut.
|
void |
setIconLocation(java.lang.String iconLocation)
Set the icon location for this shortcut.
|
void |
setPath(java.lang.String path)
Set the path for this shortcut.
|
void |
setWorkingDirectory(java.lang.String workingDirectory)
Set the working directory for this shortcut.
|
public JShellLink()
public JShellLink(java.lang.String folder, java.lang.String name)
folder
- folder where shortcut will be placedname
- filename for the shortcut as seen in windows explorepublic static java.lang.String getDirectory(java.lang.String dirtype)
dirtype
- One of the following special strings:
public java.lang.String getFolder()
public java.lang.String getName()
public void setDescription(java.lang.String description)
description
- tooltag for the iconpublic java.lang.String getDescription()
public void setPath(java.lang.String path)
path
- set the location where the shortcut looks for an executablepublic java.lang.String getPath()
public void setArguments(java.lang.String arguments)
arguments
- Set the string argument to pass to executablepublic java.lang.String getArguments()
public void setWorkingDirectory(java.lang.String workingDirectory)
workingDirectory
- the new working directorypublic java.lang.String getWorkingDirectory()
public void setIconLocation(java.lang.String iconLocation)
iconLocation
- the new icon directorypublic java.lang.String getIconLocation()
public void setIconIndex(int iconIndex)
iconIndex
- which icon in the .ico file to use (usually 1)public int getIconIndex()
public void load()
public void save()
public static void main(java.lang.String[] argv)