|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--planetj.shortcuts.ShortcutGenerator
This class is resposible for generating files in your start menu, desktop, or anywhere else you wish. Creation date: (5/26/2003 3:30:49 PM)
Field Summary | |
static String |
ADMINISTRATOR
|
static String |
ALL_USERS
|
static String |
DEFAULT_USER
|
static String |
DESKTOP
|
static String |
GUEST
|
static String |
START_MENU
|
Method Summary | |
static boolean |
generateDesktopShortcut(IShortcut pShortcut)
This method will generate a shortcut on your desktop. |
static boolean |
generateShortcut(IShortcut pShortcut)
This method will generate a shortcut on your file system. |
static boolean |
generateStartMenuShortcut(IShortcut pShortcut)
This method will generate a shortcut on your start menu. |
static String |
getCurrentUserHome()
|
static String |
getCurrentUserName()
|
static String |
getDesktopRootDirectory()
Returns a String that points to this systems desktop directory Creation date: (5/26/2003 3:34:20 PM) |
static String |
getDesktopRootDirectory(String usersFolder)
Returns a String that points to this systems desktop directory Creation date: (5/26/2003 3:34:20 PM) |
static String |
getStartMenuRootDirectory()
Returns a String that points to this systems start menu directory Creation date: (5/26/2003 3:34:20 PM) |
static String |
getStartMenuRootDirectory(String usersFolder)
Returns a String that points to this systems start menu directory Creation date: (5/26/2003 3:34:20 PM) |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String DESKTOP
public static final String START_MENU
public static final String ALL_USERS
public static final String DEFAULT_USER
public static final String ADMINISTRATOR
public static final String GUEST
Method Detail |
public static boolean generateDesktopShortcut(IShortcut pShortcut) throws CMException
**NOTE** If you want a file to go in Desktop\\XXFolder\\XXFile.url, You have to give the IShortcut a File name of XXFolder\\XXFile.url, Creation date: (5/26/2003 6:13:22 PM)
CMException
public static boolean generateShortcut(IShortcut pShortcut) throws CMException
Creation date: (5/26/2003 6:13:22 PM)
CMException
public static boolean generateStartMenuShortcut(IShortcut pShortcut) throws CMException
**NOTE** If you want a file to go in Start menu\\Programs\\XXFolder\\XXFile.url, You have to give the IShortcut a File name of \\Programs\\XXFolder\\XXFile.url, Creation date: (5/26/2003 6:13:22 PM)
CMException
public static String getCurrentUserHome()
Creation date: (5/28/2003 9:47:20 AM)
public static String getCurrentUserName()
Creation date: (5/28/2003 9:47:20 AM)
public static String getDesktopRootDirectory()
public static String getDesktopRootDirectory(String usersFolder)
returns the folder of the current user
public static String getStartMenuRootDirectory()
public static String getStartMenuRootDirectory(String usersFolder)
returns the folder of the current user
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |