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
-
CLIPBOARD
-
-
DIALUP_NO_PASSWORD
-
-
DIALUP_NO_USERNAME
-
-
DIALUP_OK
-
-
DIALUP_SERVER_ERROR
-
-
DIALUP_SERVER_UNKNOWN
-
-
DIALUPNET
-
-
DRIVE_CDROM
-
-
DRIVE_FIXED
-
-
DRIVE_INVALID
-
-
DRIVE_REMOTE
-
-
DRIVE_REMOVABLE
-
-
ex
-
-
MENUSHORTCUTS
-
-
NETWORK_AUTHENTICATED
-
-
NETWORK_AUTHENTICATING
-
-
NETWORK_CONNECT_ERROR
-
-
NETWORK_CONNECTED
-
-
NETWORK_CONNECTING
-
-
NETWORK_DISCONNECTED
-
-
NETWORK_WAITING
-
-
SERVICES
-
-
SHORTCUTS
-
-
SHOWURL
-
-
TASKICONS
-
-
Desktop()
-
-
addMenuShortcut(String, String, String, String, String)
-
-
addShortcut(String, String, String, String)
-
-
addTaskIcon(int, String, String, TaskIconHandler)
-
-
changeTaskIcon(int, String, String)
-
-
clearMenuShortcuts(String)
-
-
configureServer(String)
- Allows the user to configure the properties of the
given dialup connection.
-
configureUser(String, String)
- Sets the user/password fields for a dialup connection.
-
deleteTaskIcon(int)
-
-
DisableNetwork()
- Signals that the caller is done using the network connection.
-
dispose()
-
-
EnableNetwork(NetWatcher)
- Checks whether the network is enabled.
-
getClipboard()
-
-
getDesktop()
- Return a platform-specific desktop by looking for
a class named "marimba.desktop.Desktop".
-
getDialupPassword(String)
-
-
getDialupServers()
-
Returns a list of dialup networking servers currently
configured on the machine
-
getDialupUser(String)
-
-
getDriveType(String)
- Return the type of a logical drive.
-
getLogicalDrives()
- Return a list of strings representing logical drives on the
local system (if it makes sense in the platform).
-
getOSString()
-
-
init()
-
-
isIconic(String)
-
-
MD5Add(byte[], int, int[])
- Add 64 bytes to the digest.
-
registerService(String, String, ServiceHandler)
-
-
removeMenuShortcut(String, String)
-
-
sendToService(String, String, String)
-
-
setClipboard(Object)
-
-
setDialupServer(String)
- Sets the given serverName as the default dialup server to
use by the EnableNetwork method.
-
setIdleTimeout(int)
- Sets the amount in milliseconds to wait before the connection
is timed out when idle.
-
showURL(String)
-
-
showURL(URL)
-
-
showWindow(String)
-
-
supports(int)
-
-
unRegisterService(String)
-
-
verifyServerConfig(String)
- Verifies whether the given serverName is properly configured
for automatic service.
DIALUP_OK
public final static int DIALUP_OK
DIALUP_NO_USERNAME
public final static int DIALUP_NO_USERNAME
DIALUP_NO_PASSWORD
public final static int DIALUP_NO_PASSWORD
DIALUP_SERVER_UNKNOWN
public final static int DIALUP_SERVER_UNKNOWN
DIALUP_SERVER_ERROR
public final static int DIALUP_SERVER_ERROR
NETWORK_DISCONNECTED
public final static int NETWORK_DISCONNECTED
NETWORK_CONNECTING
public final static int NETWORK_CONNECTING
NETWORK_AUTHENTICATING
public final static int NETWORK_AUTHENTICATING
NETWORK_AUTHENTICATED
public final static int NETWORK_AUTHENTICATED
NETWORK_WAITING
public final static int NETWORK_WAITING
NETWORK_CONNECTED
public final static int NETWORK_CONNECTED
NETWORK_CONNECT_ERROR
public final static int NETWORK_CONNECT_ERROR
DRIVE_INVALID
public final static int DRIVE_INVALID
DRIVE_REMOTE
public final static int DRIVE_REMOTE
DRIVE_CDROM
public final static int DRIVE_CDROM
DRIVE_REMOVABLE
public final static int DRIVE_REMOVABLE
DRIVE_FIXED
public final static int DRIVE_FIXED
SHORTCUTS
public final static int SHORTCUTS
MENUSHORTCUTS
public final static int MENUSHORTCUTS
TASKICONS
public final static int TASKICONS
SHOWURL
public final static int SHOWURL
SERVICES
public final static int SERVICES
CLIPBOARD
public final static int CLIPBOARD
DIALUPNET
public final static int DIALUPNET
ex
protected static String ex
Desktop
protected Desktop()
init
protected boolean init()
showWindow
public boolean showWindow(String windowName)
isIconic
public boolean isIconic(String windowName)
supports
public boolean supports(int featureId)
addMenuShortcut
public boolean addMenuShortcut(String exePath,
String group,
String name,
String args,
String iconPath)
addShortcut
public boolean addShortcut(String exePath,
String name,
String args,
String iconPath)
removeMenuShortcut
public boolean removeMenuShortcut(String group,
String name)
clearMenuShortcuts
public boolean clearMenuShortcuts(String group)
addTaskIcon
public boolean addTaskIcon(int id,
String iconPath,
String helpText,
TaskIconHandler handler)
changeTaskIcon
public boolean changeTaskIcon(int id,
String iconPath,
String helpText)
deleteTaskIcon
public boolean deleteTaskIcon(int id)
showURL
public boolean showURL(String url)
showURL
public boolean showURL(URL url)
registerService
public boolean registerService(String serviceAddress,
String topic,
ServiceHandler handler)
unRegisterService
public boolean unRegisterService(String serviceAddress)
sendToService
public boolean sendToService(String serviceAddress,
String topic,
String args)
setClipboard
public void setClipboard(Object arg)
getClipboard
public Object getClipboard()
getDialupServers
public String[] getDialupServers()
- Returns a list of dialup networking servers currently
configured on the machine
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.
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.
setIdleTimeout
public boolean setIdleTimeout(int timeout)
- Sets the amount in milliseconds to wait before the connection
is timed out when idle.
configureServer
public boolean configureServer(String serverName)
- Allows the user to configure the properties of the
given dialup connection.
configureUser
public boolean configureUser(String user,
String password)
- Sets the user/password fields for a dialup connection.
getDialupUser
public String getDialupUser(String server)
getDialupPassword
public String getDialupPassword(String server)
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.
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.
getOSString
public static String getOSString()
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.
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
MD5Add
public boolean MD5Add(byte buf[],
int i,
int digest[])
- Add 64 bytes to the digest. The digest (the checksum) consists
of 4 integers.
getDesktop
public static Desktop getDesktop()
- Return a platform-specific desktop by looking for
a class named "marimba.desktop.Desktop".
dispose
public void dispose()
All Packages Class Hierarchy This Package Previous Next Index