Class CreateShortcut
- java.lang.Object
-
- com.zerog.ia.auto.project.ProjectObject
-
- com.zerog.ia.auto.project.InstallableObject
-
- com.zerog.ia.auto.project.actions.Action
-
- com.zerog.ia.auto.project.actions.CreateShortcut
-
- All Implemented Interfaces:
OSHostable,Referenceable
public class CreateShortcut extends Action implements OSHostable
Creates an alias (Mac OS X), symbolic link (Unix and Linux), or shortcut (Windows).
-
-
Constructor Summary
Constructors Constructor Description CreateShortcut()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDestinationName()The destination for the shortcut.java.lang.StringgetExistingFile()The path of the existing file.FileIcongetShortcutIcon()The icon that will be used for the shortcut.booleangetShouldUninstall()Whether the shortcut should be uninstalled.FileActiongetTargetAction()The target action the shortcut should point to.booleangetUseInstalledFile()Whether an installed file should be used rather than an existant one.java.lang.StringgetWindowsArguments()The arguments used for the shortcut to launch the target program, on a Windows environment.java.lang.StringgetWindowsStartDir()The Windows start dir, where the target program should be started from.voidsetDestinationName(java.lang.String DestinationName)The destination for the shortcut.voidsetExistingFile(java.lang.String path)The path of the existing file.voidsetShortcutIcon(FileIcon shortcutIcon)The icon that will be used for the shortcut.voidsetShouldUninstall(boolean ShouldUninstall)Whether the shortcut should be uninstalled.voidsetTargetAction(FileAction file)The target action the shortcut should point to.voidsetUseInstalledFile(boolean b)Whether an installed file should be used rather than an existant one.voidsetWindowsArguments(java.lang.String args)The arguments used for the shortcut to launch the target program, on a Windows environment.voidsetWindowsStartDir(java.lang.String startIn)The Windows start dir, where the target program should be started from.-
Methods inherited from class com.zerog.ia.auto.project.InstallableObject
getBelongsToUninstallPhase, getRollbackEnabledCancel, getRollbackEnabledError, getRuleExpression, getRules, getRulesLogicalOperation, getTagsInInstallPiece, setBelongsToUninstallPhase, setRollbackEnabledCancel, setRollbackEnabledError, setRuleExpression, setRulesLogicalOperation, setTagsInInstallPiece
-
Methods inherited from class com.zerog.ia.auto.project.ProjectObject
equals, getReferenceID, hashCode, setReferenceID
-
-
-
-
Method Detail
-
setTargetAction
public void setTargetAction(FileAction file)
The target action the shortcut should point to. This can be aFileAction, aCreateLaunchAnywhereaction or aCreateUninstalleraction.
-
getTargetAction
public FileAction getTargetAction()
The target action the shortcut should point to. This can be aFileAction, aCreateLaunchAnywhereaction or aCreateUninstalleraction.
-
setShortcutIcon
public void setShortcutIcon(FileIcon shortcutIcon)
The icon that will be used for the shortcut.
-
getShortcutIcon
public FileIcon getShortcutIcon()
The icon that will be used for the shortcut.
-
setWindowsArguments
public void setWindowsArguments(java.lang.String args)
The arguments used for the shortcut to launch the target program, on a Windows environment.
-
getWindowsArguments
public java.lang.String getWindowsArguments()
The arguments used for the shortcut to launch the target program, on a Windows environment.
-
setUseInstalledFile
public void setUseInstalledFile(boolean b)
Whether an installed file should be used rather than an existant one.
-
getUseInstalledFile
public boolean getUseInstalledFile()
Whether an installed file should be used rather than an existant one.
-
setExistingFile
public void setExistingFile(java.lang.String path)
The path of the existing file.
-
getExistingFile
public java.lang.String getExistingFile()
The path of the existing file.
-
setWindowsStartDir
public void setWindowsStartDir(java.lang.String startIn)
The Windows start dir, where the target program should be started from.
-
getWindowsStartDir
public java.lang.String getWindowsStartDir()
The Windows start dir, where the target program should be started from.
-
getDestinationName
public java.lang.String getDestinationName()
The destination for the shortcut.
-
setDestinationName
public void setDestinationName(java.lang.String DestinationName)
The destination for the shortcut.
-
getShouldUninstall
public boolean getShouldUninstall()
Whether the shortcut should be uninstalled.
-
setShouldUninstall
public void setShouldUninstall(boolean ShouldUninstall)
Whether the shortcut should be uninstalled.
-
-