All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface com.sun.wizards.services.RemoteDesktopServiceInt

public interface RemoteDesktopServiceInt
extends Remote
Remote interface for RMI-exportable desktop service objects. Mirrors DesktopService exactly, except that each interface throws java.rmi.RemoteException.

See Also:
DesktopService

Method Index

 o createDesktopFolder(String)
Creates a desktop folder
 o createDesktopItem(String, String, String, String)
Creates a desktop item for the specified command.
 o getNamedFolderList(String, String)
Gets a list of folders that are in the specified folder.
 o removeDesktopFolder(String)
Removes a desktop folder.
 o removeDesktopItem(String, String)
Removes a desktop item.

Methods

 o getNamedFolderList
 public abstract String[] getNamedFolderList(String folderName,
                                             String param) throws RemoteException
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 abstract boolean createDesktopItem(String folderName,
                                           String title,
                                           String command,
                                           String iconName) throws RemoteException
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 abstract boolean removeDesktopItem(String folderName,
                                           String title) throws RemoteException
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 abstract boolean createDesktopFolder(String folderName) throws RemoteException
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 abstract boolean removeDesktopFolder(String folderName) throws RemoteException
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