public abstract class AbstractRemoteDesktopClient extends Object implements RemoteDesktopClient, ImageOwner, ServerPropertyCapable, PropertyChangeListener
T-Plan Robot Enterprise, (C) 2009-2022 T-Plan Limited. All rights reserved.
LOGIN_PARAM_PASSWORD, LOGIN_PARAM_URI, LOGIN_PARAM_USER
Constructor and Description |
---|
AbstractRemoteDesktopClient() |
Modifier and Type | Method and Description |
---|---|
void |
addClientListener(RemoteDesktopClientListener listener)
Add a client listener.
|
void |
addServerListener(RemoteDesktopServerListener listener)
Add a server listener to the client.
|
void |
destroy()
Destroy the client and make it ready for garbage collection.
|
String |
getConnectionName()
Get the connection name.
|
Map<String,Object> |
getServerProperties()
Implementation of
ServerPropertyCapable.getServerProperties() . |
boolean |
isActivelyUpdating()
The client is by default considered passive (the method returns false).
|
boolean |
isConnectedTo(String connectString)
Test whether this client is connected to a desktop identified by a
particular URL (connect string).
|
boolean |
isLocalDisplay(Rectangle r)
Test out if the argument rectangle intersects the automated screen.
|
boolean |
isOnHold()
Find out if the connection is put on hold because there's no free
license.
|
boolean |
isStatic()
The client is by default considered dynamic (the method returns false).
|
void |
propertyChange(PropertyChangeEvent evt)
Implementation of the
PropertyChangeListener to listen to changes
of the server property map and fire the RemoteDesktopServerEvent . |
void |
removeClientListener(RemoteDesktopClientListener listener)
Remove an object from the list of client listeners.
|
void |
removeServerListener(RemoteDesktopServerListener listener)
Remove an object from the list of server listeners.
|
void |
setConnectionName(String connectionName)
Set the connection name.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, connect, getConnectString, getDefaultPort, getDesktopHeight, getDesktopName, getDesktopWidth, getHost, getImage, getLastMouseEvent, getLoginParamsSpecification, getPassword, getPort, getProtocol, getUser, hasSufficientConnectInfo, isConnected, isConnecting, isConsoleMode, isLocalDisplay, sendClientCutText, setConsoleMode, setLoginParams
checkDependencies, getCode, getDate, getDescription, getDisplayName, getImplementedInterface, getLowestSupportedVersion, getMessageAfterInstall, getMessageBeforeInstall, getSupportContact, getUniqueId, getVendorHomePage, getVendorName, getVersion, requiresRestart
public void addServerListener(RemoteDesktopServerListener listener)
addServerListener
in interface RemoteDesktopClient
listener
- an object implementing the
RemoteServerListener
interface.public void removeServerListener(RemoteDesktopServerListener listener)
removeServerListener
in interface RemoteDesktopClient
listener
- an object implementing the
RemoteDesktopServerListener
interface.public void addClientListener(RemoteDesktopClientListener listener)
addClientListener
in interface RemoteDesktopClient
listener
- an object implementing the
RemoteDesktopClientListener
interface.public void removeClientListener(RemoteDesktopClientListener listener)
removeClientListener
in interface RemoteDesktopClient
listener
- an object implementing the
RemoteDesktopClientListener
interface.public void destroy()
destroy
in interface RemoteDesktopClient
public boolean isConnectedTo(String connectString)
RemoteDesktopClient
isConnectedTo
in interface RemoteDesktopClient
connectString
- an URL (connect string).public boolean isActivelyUpdating()
isActivelyUpdating
in interface ImageOwner
public boolean isStatic()
isStatic
in interface ImageOwner
public Map<String,Object> getServerProperties()
ServerPropertyCapable.getServerProperties()
. It
delivers a generic framework allowing clients to populate variables
through the
setServerProperty(java.lang.String, java.lang.String)
method.getServerProperties
in interface ServerPropertyCapable
public void propertyChange(PropertyChangeEvent evt)
PropertyChangeListener
to listen to changes
of the server property map and fire the RemoteDesktopServerEvent
.
See setServerProperty(java.lang.String, java.lang.String)
and
getServerProperties()
.propertyChange
in interface PropertyChangeListener
evt
- an event describing the property name and value.public boolean isLocalDisplay(Rectangle r)
RemoteDesktopClient
isLocalDisplay
in interface RemoteDesktopClient
r
- a rectangle.public String getConnectionName()
setConnectionName(java.lang.String)
for details.public void setConnectionName(String connectionName)
connectionName
- name of the connection (SUT).public boolean isOnHold()