|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.af.commons.install.DesktopShortcut
public abstract class DesktopShortcut
Abstract base class to create a shortcut on the desktop. Subclasses provide implementations for different operating systems.
| Method Summary | |
|---|---|
void |
addParameter(File param)
Add a file path as parameter to the executable. |
void |
addParameter(String param)
Add a parameter to the executable. |
abstract void |
create()
Creates the shortcut. |
String |
getDescription()
Returns the description for this shortcut. |
String |
getExec()
Returns the targetted executable. |
String |
getIconpath()
Return the path to the used icon. |
String |
getName()
Returns the visble name of the shortcut. |
File |
getShortcutDir()
Returns the directory the shortcut will be created in. |
File |
getWorkingDir()
Returns the working directory for the desktop shortcut. |
void |
setDescription(String description)
Sets the description for this shortcut. |
void |
setIconpath(File icon)
Sets the icon for the desktop shortcut. |
void |
setIconpath(String iconpath)
Sets the icon for the desktop entry. |
void |
setWorkingDir(File workingDir)
Sets the working directory for the desktop shortcut. |
void |
setWorkingDir(String workingDir)
Sets the working directory for the desktop shortcut. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public String getName()
public File getShortcutDir()
public String getExec()
public void addParameter(String param)
param - added parameter for executable target.public void addParameter(File param)
param - added parameter for executable target.public String getIconpath()
public void setIconpath(File icon)
icon - Icon file for the desktop entry.public void setIconpath(String iconpath)
iconpath - Absolute path to specify the icon for the desktop entry.public void setWorkingDir(File workingDir)
workingDir - The working directory for the desktop shortcut.public void setWorkingDir(String workingDir)
workingDir - The working directory for the desktop shortcut.public File getWorkingDir()
public String getDescription()
public void setDescription(String description)
description - The description for this shortcut.
public abstract void create()
throws IOException
IOException - If something bad happens while writing the link.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||