All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.wizards.services.RemoteDesktopServiceProxy

java.lang.Object
   |
   +----com.sun.wizards.services.RemoteDesktopServiceProxy

public class RemoteDesktopServiceProxy
extends Object
implements RemoteDesktopServiceInt, Service
RMI-Exportable object that actually does the work of the service (by calling the SystemInterface methods. This object is exported to the client and configured into a RemoteDesktopService object, for use by client classes. This class can also be used locally on the server.

See Also:
RemoteDesktopService

Constructor Index

 o RemoteDesktopServiceProxy()
Creates a new object.

Method Index

 o close()
Closes this service.
 o createDesktopFolder(String)
Creates a desktop folder
 o createDesktopItem(String, String, String, String)
Creates a desktop item for the specified command.
 o exportService()
This object exports itself via UnicastRemoteObject.exportObject(this) so that it can be used through RMI in other VMs.
 o getNamedFolderList(String, String)
Gets a list of folders that are in the specified folder.
 o isExported()
 o removeDesktopFolder(String)
Removes a desktop folder.
 o removeDesktopItem(String, String)
Removes a desktop item.

Constructors

 o RemoteDesktopServiceProxy
 public RemoteDesktopServiceProxy()
Creates a new object.

Methods

 o exportService
 public void exportService()
This object exports itself via UnicastRemoteObject.exportObject(this) so that it can be used through RMI in other VMs.

 o isExported
 public boolean isExported()
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o close
 public void close()
Closes this service. This should be called before attempting to exit the wizard.


All Packages  Class Hierarchy  This Package  Previous  Next  Index