planetj.shortcuts
Interface IShortcut

All Known Implementing Classes:
InternetShortcut

public interface IShortcut

Interface for our shortcuts to conform to Creation date: (5/26/2003 5:41:34 PM)


Method Summary
 String getFileName()
          This will be the file name of the shortcut.
 String getIconFile()
          Returns the Icon file destination String EX: C:\Temp\PlanetJ.ico Creation date: (5/26/2003 3:02:41 PM)
 int getIconIndex()
          The Icon index is the index of the icon you want to use This is only appropriate when you are using a .exe that contains many icons Creation date: (5/26/2003 3:02:41 PM)
 String getLeadingDirectories()
          This will return a String of the leading directories before the FileName For instance if the file name is \\PlanetJ\\WOW\\WOW.url, this would return \\PlanetJ\\WOW\\ Creation date: (5/26/2003 5:47:48 PM)
 String getURL()
          must be the file or URL in url format Example of URL = "http://www.planetjavainc.com/" Example of file = "file://c:/Temp/Runnable.exe" Creation date: (5/26/2003 3:02:41 PM)
 String toString()
          This method will return the string that is the shortcut file's text.
 

Method Detail

getFileName

public String getFileName()
This will be the file name of the shortcut. EX: PlanetJ.url

**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 5:47:48 PM)

Returns:
java.lang.String

getIconFile

public String getIconFile()
Returns the Icon file destination String EX: C:\Temp\PlanetJ.ico Creation date: (5/26/2003 3:02:41 PM)

Returns:
java.lang.String

getIconIndex

public int getIconIndex()
The Icon index is the index of the icon you want to use This is only appropriate when you are using a .exe that contains many icons Creation date: (5/26/2003 3:02:41 PM)

Returns:
int

getLeadingDirectories

public String getLeadingDirectories()
This will return a String of the leading directories before the FileName For instance if the file name is \\PlanetJ\\WOW\\WOW.url, this would return \\PlanetJ\\WOW\\ Creation date: (5/26/2003 5:47:48 PM)

Returns:
java.lang.String

getURL

public String getURL()
must be the file or URL in url format Example of URL = "http://www.planetjavainc.com/" Example of file = "file://c:/Temp/Runnable.exe" Creation date: (5/26/2003 3:02:41 PM)

Returns:
java.lang.String

toString

public String toString()
This method will return the string that is the shortcut file's text. Creation date: (5/26/2003 3:22:13 PM)

Overrides:
toString in class Object