|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.izforge.izpack.util.os.Shortcut
com.izforge.izpack.util.os.Unix_Shortcut
| Field Summary | |
private static java.lang.String |
C
C = Comment = H+S = "# " |
private java.lang.String |
createdDirectory
|
private static java.lang.String |
DESKTOP_EXT
DESKTOP_EXT = ".desktop" |
private static java.lang.String |
H
H = "#" |
private java.lang.String |
itsApplnkFolder
|
private java.lang.String |
itsArguments
|
private java.lang.String |
itsDescription
|
private java.lang.String |
itsFileName
|
private java.lang.String |
itsGroupName
|
private int |
itsIconIndex
|
private java.lang.String |
itsIconPath
|
private java.lang.String |
itsName
|
private int |
itsShow
|
private java.lang.String |
itsTargetPath
|
private int |
itsType
|
private int |
itsUserType
|
private java.lang.String |
itsWorkingDirectory
|
private static java.lang.String |
N
N = "\n" |
private java.util.Properties |
props
|
private static java.lang.String |
rev
|
private static java.lang.String |
S
S = " " |
private static java.lang.String |
template
|
private static java.lang.String |
version
|
| Fields inherited from class com.izforge.izpack.util.os.Shortcut |
ALL_USERS, APPLICATIONS, CURRENT_USER, DESKTOP, HIDE, MAXIMIZED, MINIMIZED, NORMAL, START_MENU, START_UP |
| Fields inherited from interface com.izforge.izpack.util.os.Unix_ShortcutConstants |
$$LANG_Comment, $$LANG_GenericName, $$LANG_Name, $Arguments, $Comment, $Encoding, $Exec, $GenericName, $Icon, $MimeType, $Name, $Options_For_Terminal, $Path, $ServiceTypes, $SwallowExec, $SwallowTitle, $Terminal, $Type, $URL, $X_KDE_SubstituteUID, $X_KDE_Username |
| Constructor Summary | |
Unix_Shortcut()
|
|
| Method Summary | |
java.lang.String |
getDirectoryCreated()
Dummy |
java.lang.String |
getFileName()
Dummy |
java.util.Vector |
getProgramGroups(int userType)
Overridden Compatibility Method. |
void |
initialize(int aType,
java.lang.String aName)
Overridden Method |
private void |
initProps()
This initialisizes all Properties Values with null. |
static void |
main(java.lang.String[] args)
Test Method |
boolean |
multipleUsers()
overridden method |
java.lang.String |
replace()
Creates the Shortcut String which will be stored as File. |
void |
save()
Creates and stores the shortcut-files. |
void |
setArguments(java.lang.String args)
Set the Commandline Arguments |
void |
setDescription(java.lang.String description)
Sets the Description |
void |
setEncoding(java.lang.String aEncoding)
Sets The Encoding |
void |
setIconLocation(java.lang.String path,
int index)
Sets The Icon Path |
void |
setKdeSubstUID(java.lang.String aKDESubstUID)
Sets The KDE Specific subst UID property |
void |
setLinkName(java.lang.String aName)
Sets the Name of this Shortcut |
void |
setLinkType(int aType)
Sets the type of this Shortcut |
void |
setMimetype(java.lang.String aMimetype)
Sets the MimeType |
void |
setProgramGroup(java.lang.String aGroupName)
Sets the ProgramGroup |
void |
setShowCommand(int show)
Sets the ShowMode |
void |
setTargetPath(java.lang.String aPath)
Sets The TargetPath |
void |
setTerminal(java.lang.String trueFalseOrNothing)
Sets the terminal |
void |
setTerminalOptions(java.lang.String someTerminalOptions)
Sets the terminal options |
void |
setType(java.lang.String aType)
Sets the Shortcut type (one of Application, Link or Device) |
void |
setURL(java.lang.String anUrl)
Sets the Url for type Link. |
void |
setUserType(int aUserType)
Sets the usertype. |
void |
setWorkingDirectory(java.lang.String aDirectory)
Sets the working-directory |
boolean |
supported()
This indicates that Unix will be supported. |
java.lang.String |
toString()
Dumps the Name to console. |
| Methods inherited from class com.izforge.izpack.util.os.Shortcut |
getBasePath, getHotkey, getIconLocation, getLinkType, getShowCommand, getUserType, getWorkingDirectory, setHotkey |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private static java.lang.String version
private static java.lang.String rev
private java.lang.String createdDirectory
private static java.lang.String DESKTOP_EXT
private int itsShow
private int itsUserType
private int itsType
private int itsIconIndex
private java.lang.String itsWorkingDirectory
private java.lang.String itsGroupName
private java.lang.String itsTargetPath
private java.lang.String itsIconPath
private java.lang.String itsDescription
private java.lang.String itsArguments
private java.lang.String itsName
private java.lang.String itsFileName
private java.lang.String itsApplnkFolder
private static java.lang.String template
private java.util.Properties props
private static final java.lang.String N
private static final java.lang.String H
private static final java.lang.String S
private static final java.lang.String C
| Constructor Detail |
public Unix_Shortcut()
| Method Detail |
private void initProps()
public void initialize(int aType,
java.lang.String aName)
throws java.lang.Exception
initialize in class ShortcutaType - the type or classification of the program group in which
the link should exist.aName - the name of the shortcut.
java.lang.ExceptionShortcut.initialize(int, java.lang.String)public boolean supported()
supported in class Shortcuttrue if the creation of shortcuts is supported,
flase if this is not supported.Shortcut.supported()public java.lang.String getDirectoryCreated()
getDirectoryCreated in class Shortcutnull.Shortcut.getDirectoryCreated()public java.lang.String getFileName()
getFileName in class ShortcutStringShortcut.getFileName()public java.util.Vector getProgramGroups(int userType)
getProgramGroups in class ShortcutuserType - the type of user for the program group set.
Vector of String objects that
represent the names of the existing program groups. It is
theoretically possible that this list is empty.Shortcut.getProgramGroups(int)public boolean multipleUsers()
multipleUsers in class ShortcutShortcut.multipleUsers()
public void save()
throws java.lang.Exception
save in class Shortcutjava.lang.Exception - if problems are encounteredShortcut.save()public void setArguments(java.lang.String args)
setArguments in class Shortcutargs - the command line argumentsShortcut.setArguments(java.lang.String)public void setDescription(java.lang.String description)
setDescription in class Shortcutdescription - the descriptiojn stringShortcut.setDescription(java.lang.String)
public void setIconLocation(java.lang.String path,
int index)
setIconLocation in class Shortcutpath - a fully qualified file name of a file that contains
the icon.index - the index of the specific icon to use in the file.
If there is only one icon in the file, use an index
of 0.Shortcut.setIconLocation(java.lang.String, int)public void setLinkName(java.lang.String aName)
setLinkName in class ShortcutaName - The name that the link should display on a menu or on
the desktop. Do not include a file extension.Shortcut.setLinkName(java.lang.String)
public void setLinkType(int aType)
throws java.lang.IllegalArgumentException
setLinkType in class ShortcutaType - The type of link desired. The following values can be set:java.lang.IllegalArgumentException - if an an invalid type is passedShortcut.setLinkType(int)public void setProgramGroup(java.lang.String aGroupName)
setProgramGroup in class ShortcutaGroupName - the name of the program groupShortcut.setProgramGroup(java.lang.String)public void setShowCommand(int show)
setShowCommand in class Shortcutshow - the show command. Valid settings are: Shortcut.setShowCommand(int)public void setTargetPath(java.lang.String aPath)
setTargetPath in class ShortcutaPath - the fully qualified file name of the targetShortcut.setTargetPath(java.lang.String)public void setUserType(int aUserType)
setUserType in class ShortcutaUserType - the type of user for the link.Shortcut.setUserType(int)public void setWorkingDirectory(java.lang.String aDirectory)
setWorkingDirectory in class ShortcutaDirectory - the working directoryShortcut.setWorkingDirectory(java.lang.String)public java.lang.String toString()
Object.toString()public java.lang.String replace()
public static void main(java.lang.String[] args)
public void setEncoding(java.lang.String aEncoding)
setEncoding in class ShortcutaEncoding - Shortcut.setEncoding(java.lang.String)public void setKdeSubstUID(java.lang.String aKDESubstUID)
setKdeSubstUID in class ShortcutaKDESubstUID - Shortcut.setKdeSubstUID(java.lang.String)public void setMimetype(java.lang.String aMimetype)
setMimetype in class ShortcutaMimetype - Shortcut.setMimetype(java.lang.String)public void setTerminal(java.lang.String trueFalseOrNothing)
setTerminal in class ShortcuttrueFalseOrNothing - Shortcut.setTerminal(java.lang.String)public void setTerminalOptions(java.lang.String someTerminalOptions)
setTerminalOptions in class ShortcutsomeTerminalOptions - Shortcut.setTerminalOptions(java.lang.String)public void setType(java.lang.String aType)
setType in class ShortcutaType - Shortcut.setType(java.lang.String)public void setURL(java.lang.String anUrl)
setURL in class ShortcutanUrl - Shortcut.setURL(java.lang.String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||