All Packages Class Hierarchy This Package Previous Next Index
Class com.sun.wizards.services.RemoteDesktopService
java.lang.Object
|
+----com.sun.wizards.services.RemoteDesktopService
- public class RemoteDesktopService
- extends Object
- implements DesktopService
Client-side object that calls back via RMI into the DesktopServiceProxy
existing on the server.
-
RemoteDesktopService(RemoteDesktopServiceInt)
- Creates a new object, and configures it with the proxy object
to pass calls through RMI to.
-
createDesktopFolder(String)
- Creates a desktop folder
-
createDesktopItem(String, String, String, String)
- Creates a desktop item for the specified command.
-
getNamedFolderList(String, String)
- Gets a list of folders that are in the specified folder.
-
removeDesktopFolder(String)
- Removes a desktop folder.
-
removeDesktopItem(String, String)
- Removes a desktop item.
RemoteDesktopService
public RemoteDesktopService(RemoteDesktopServiceInt desktopProxy)
- Creates a new object, and configures it with the proxy object
to pass calls through RMI to.
- Parameters:
- desktopProxy - the proxy object to contact
getNamedFolderList
public String[] getNamedFolderList(String folderName,
String param)
- Gets a list of folders that are in the specified folder. You can
use the names to search recursively through the folder tree
- Parameters:
- folderName - The name of the folder to search in.
- param - An optional param used by implementations to specify
additional parameters
- Returns:
- The list of items in this folder, or
null if the
folder does not exist or is not readable.
createDesktopItem
public boolean createDesktopItem(String folderName,
String title,
String command,
String iconName)
- Creates a desktop item for the specified command. For
example, on Microsoft Windows, an icon is placed on the
"Start" menu.
- Parameters:
- folderName - The name of the folder to search in.
- title - The name of the item as it should appear
on-screen.
- command - The platform-specific command to activate when
this desktop item is selected by the user.
- iconPath - The absolute path To the file representing
the icon. The icon file format should be the correct one
for the platform. For example, on Sun Solaris, the icon
must be in
.xpm format. If no icon name is
supplied, none is used, or the default one is used for the
supplied command.
- Returns:
- Whether the item was able to be added or not.
removeDesktopItem
public boolean removeDesktopItem(String folderName,
String title)
- Removes a desktop item.
- Parameters:
- folderName - The name of the folder that the item to
remove is in.
- title - The name of the item as it appears on-screen.
- Returns:
- Whether the item was removed or not. If the item did
not exist in the first place,
false is returned.
createDesktopFolder
public boolean createDesktopFolder(String folderName)
- Creates a desktop folder
- Parameters:
- folderName - The name of the folder to search in.
- Returns:
- Whether the folder was created or not.
removeDesktopFolder
public boolean removeDesktopFolder(String folderName)
- Removes a desktop folder.
- Parameters:
- folderName - The name of the folder that the folder to
remove is in.
- title - The name of the folder as it appears on-screen.
- Returns:
- Whether the folder was removed or not. If the folder
did not exist in the first place,
false is
returned.
All Packages Class Hierarchy This Package Previous Next Index