|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.af.commons.install.DesktopShortcut
org.af.commons.install.WindowsDesktopShortcut
public class WindowsDesktopShortcut
Creates a Windows desktop URL entry.
| Constructor Summary | |
|---|---|
WindowsDesktopShortcut(File shortcutDir,
String name,
File exec)
Constructor |
|
WindowsDesktopShortcut(File shortcutDir,
String name,
String exec)
Constructor |
|
| Method Summary | |
|---|---|
void |
create()
Creates the shortcut. |
void |
setHotkey(String hotkey)
Set HotKey like objSC.HotKey = "CTRL+ALT+SHIFT+X"; |
void |
setIconpath(String iconpath,
int nr)
Sets the icon for the desktop entry like "notepad.exe, 0". |
void |
setWindowsstyle(Integer windowsstyle)
Set WindowStyle like objSC.WindowStyle = 1 |
| Methods inherited from class org.af.commons.install.DesktopShortcut |
|---|
addParameter, addParameter, getDescription, getExec, getIconpath, getName, getShortcutDir, getWorkingDir, setDescription, setIconpath, setIconpath, setWorkingDir, setWorkingDir |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WindowsDesktopShortcut(File shortcutDir,
String name,
File exec)
shortcutDir - Directory where shortcut is created.name - Visible name of the shortcutexec - The targetted executable for this shortcut.
public WindowsDesktopShortcut(File shortcutDir,
String name,
String exec)
shortcutDir - Directory where shortcut is created.name - Visible name of the shortcutexec - The targetted executable for this shortcut. You can set an executable on the path here, but in general you should use the constructor with the File argument.| Method Detail |
|---|
public void setHotkey(String hotkey)
public void setWindowsstyle(Integer windowsstyle)
windowsstyle - 1 = normal; 3 = maximize window; 7 = minimize
public void setIconpath(String iconpath,
int nr)
iconpath - Absolute path which will be used to specify the icon for the desktop entry.
public void create()
throws IOException
DesktopShortcut
create in class DesktopShortcutIOException - If something bad happens while writing the link.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||