Class marimba.desktop.Desktop
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class marimba.desktop.Desktop

java.lang.Object
   |
   +----marimba.desktop.Desktop

public class Desktop
extends Object

Variable Index

 o CLIPBOARD
 o DIALUP_NO_PASSWORD
 o DIALUP_NO_USERNAME
 o DIALUP_OK
 o DIALUP_SERVER_ERROR
 o DIALUP_SERVER_UNKNOWN
 o DIALUPNET
 o DRIVE_CDROM
 o DRIVE_FIXED
 o DRIVE_INVALID
 o DRIVE_REMOTE
 o DRIVE_REMOVABLE
 o ex
 o MENUSHORTCUTS
 o NETWORK_AUTHENTICATED
 o NETWORK_AUTHENTICATING
 o NETWORK_CONNECT_ERROR
 o NETWORK_CONNECTED
 o NETWORK_CONNECTING
 o NETWORK_DISCONNECTED
 o NETWORK_WAITING
 o SERVICES
 o SHORTCUTS
 o SHOWURL
 o TASKICONS

Constructor Index

 o Desktop()

Method Index

 o addMenuShortcut(String, String, String, String, String)
 o addShortcut(String, String, String, String)
 o addTaskIcon(int, String, String, TaskIconHandler)
 o changeTaskIcon(int, String, String)
 o clearMenuShortcuts(String)
 o configureServer(String)
Allows the user to configure the properties of the given dialup connection.
 o configureUser(String, String)
Sets the user/password fields for a dialup connection.
 o deleteTaskIcon(int)
 o DisableNetwork()
Signals that the caller is done using the network connection.
 o dispose()
 o EnableNetwork(NetWatcher)
Checks whether the network is enabled.
 o getClipboard()
 o getDesktop()
Return a platform-specific desktop by looking for a class named "marimba.desktop.Desktop".
 o getDialupPassword(String)
 o getDialupServers()
Returns a list of dialup networking servers currently configured on the machine
 o getDialupUser(String)
 o getDriveType(String)
Return the type of a logical drive.
 o getLogicalDrives()
Return a list of strings representing logical drives on the local system (if it makes sense in the platform).
 o getOSString()
 o init()
 o isIconic(String)
 o MD5Add(byte[], int, int[])
Add 64 bytes to the digest.
 o registerService(String, String, ServiceHandler)
 o removeMenuShortcut(String, String)
 o sendToService(String, String, String)
 o setClipboard(Object)
 o setDialupServer(String)
Sets the given serverName as the default dialup server to use by the EnableNetwork method.
 o setIdleTimeout(int)
Sets the amount in milliseconds to wait before the connection is timed out when idle.
 o showURL(String)
 o showURL(URL)
 o showWindow(String)
 o supports(int)
 o unRegisterService(String)
 o verifyServerConfig(String)
Verifies whether the given serverName is properly configured for automatic service.

Variables

 o DIALUP_OK
  public final static int DIALUP_OK
 o DIALUP_NO_USERNAME
  public final static int DIALUP_NO_USERNAME
 o DIALUP_NO_PASSWORD
  public final static int DIALUP_NO_PASSWORD
 o DIALUP_SERVER_UNKNOWN
  public final static int DIALUP_SERVER_UNKNOWN
 o DIALUP_SERVER_ERROR
  public final static int DIALUP_SERVER_ERROR
 o NETWORK_DISCONNECTED
  public final static int NETWORK_DISCONNECTED
 o NETWORK_CONNECTING
  public final static int NETWORK_CONNECTING
 o NETWORK_AUTHENTICATING
  public final static int NETWORK_AUTHENTICATING
 o NETWORK_AUTHENTICATED
  public final static int NETWORK_AUTHENTICATED
 o NETWORK_WAITING
  public final static int NETWORK_WAITING
 o NETWORK_CONNECTED
  public final static int NETWORK_CONNECTED
 o NETWORK_CONNECT_ERROR
  public final static int NETWORK_CONNECT_ERROR
 o DRIVE_INVALID
  public final static int DRIVE_INVALID
 o DRIVE_REMOTE
  public final static int DRIVE_REMOTE
 o DRIVE_CDROM
  public final static int DRIVE_CDROM
 o DRIVE_REMOVABLE
  public final static int DRIVE_REMOVABLE
 o DRIVE_FIXED
  public final static int DRIVE_FIXED
 o SHORTCUTS
  public final static int SHORTCUTS
 o MENUSHORTCUTS
  public final static int MENUSHORTCUTS
 o TASKICONS
  public final static int TASKICONS
 o SHOWURL
  public final static int SHOWURL
 o SERVICES
  public final static int SERVICES
 o CLIPBOARD
  public final static int CLIPBOARD
 o DIALUPNET
  public final static int DIALUPNET
 o ex
  protected static String ex

Constructors

 o Desktop
  protected Desktop()

Methods

 o init
  protected boolean init()
 o showWindow
  public boolean showWindow(String windowName)
 o isIconic
  public boolean isIconic(String windowName)
 o supports
  public boolean supports(int featureId)
 o addMenuShortcut
  public boolean addMenuShortcut(String exePath,
                                 String group,
                                 String name,
                                 String args,
                                 String iconPath)
 o addShortcut
  public boolean addShortcut(String exePath,
                             String name,
                             String args,
                             String iconPath)
 o removeMenuShortcut
  public boolean removeMenuShortcut(String group,
                                    String name)
 o clearMenuShortcuts
  public boolean clearMenuShortcuts(String group)
 o addTaskIcon
  public boolean addTaskIcon(int id,
                             String iconPath,
                             String helpText,
                             TaskIconHandler handler)
 o changeTaskIcon
  public boolean changeTaskIcon(int id,
                                String iconPath,
                                String helpText)
 o deleteTaskIcon
  public boolean deleteTaskIcon(int id)
 o showURL
  public boolean showURL(String url)
 o showURL
  public boolean showURL(URL url)
 o registerService
  public boolean registerService(String serviceAddress,
                                 String topic,
                                 ServiceHandler handler)
 o unRegisterService
  public boolean unRegisterService(String serviceAddress)
 o sendToService
  public boolean sendToService(String serviceAddress,
                               String topic,
                               String args)
 o setClipboard
  public void setClipboard(Object arg)
 o getClipboard
  public Object getClipboard()
 o getDialupServers
  public String[] getDialupServers()
Returns a list of dialup networking servers currently configured on the machine
 o verifyServerConfig
  public int verifyServerConfig(String serverName)
Verifies whether the given serverName is properly configured for automatic service. The most common problem that could occur is that it doesn't have the right password (or any password). Returns one of the DIALUP_* constants defined above.
 o setDialupServer
  public boolean setDialupServer(String serverName)
Sets the given serverName as the default dialup server to use by the EnableNetwork method. If serverName is set to null then EnableNetwork will assume we're directly connected and will always return true.
 o setIdleTimeout
  public boolean setIdleTimeout(int timeout)
Sets the amount in milliseconds to wait before the connection is timed out when idle.
 o configureServer
  public boolean configureServer(String serverName)
Allows the user to configure the properties of the given dialup connection.
 o configureUser
  public boolean configureUser(String user,
                               String password)
Sets the user/password fields for a dialup connection.
 o getDialupUser
  public String getDialupUser(String server)
 o getDialupPassword
  public String getDialupPassword(String server)
 o EnableNetwork
  public boolean EnableNetwork(NetWatcher w)
Checks whether the network is enabled. For direct connections, it always returns without an exception. For no-connection mode it throws an exception unless the ipaddress points to localhost. For modem access, this method checks whether there is an active connection. If so, and it is in connected state (and to the right server) the method returns. If there is no active connection dial-in access is attempted to the configured host. If the dial-in fails or there is an open connection with errors, an exception is thrown.
 o DisableNetwork
  public void DisableNetwork()
Signals that the caller is done using the network connection. This can be used to detect when the network connection is idle so that it can be disconnected after an idle timeout.
 o getOSString
  public static String getOSString()
 o getLogicalDrives
  public String[] getLogicalDrives()
Return a list of strings representing logical drives on the local system (if it makes sense in the platform). The resulting strings can be prefixed to a path to make a path into that logical drive. If the local platform doesn't have a logical drive concept then null is returned.
 o getDriveType
  public int getDriveType(String drive)
Return the type of a logical drive. Uses one of the DRIVE_* constants given above. The string given should be one of the strings returned by getLogicalDrives
 o MD5Add
  public boolean MD5Add(byte buf[],
                        int i,
                        int digest[])
Add 64 bytes to the digest. The digest (the checksum) consists of 4 integers.
 o getDesktop
  public static Desktop getDesktop()
Return a platform-specific desktop by looking for a class named "marimba.desktop.Desktop".
 o dispose
  public void dispose()

All Packages  Class Hierarchy  This Package  Previous  Next  Index