|
T-Plan Robot Enterprise 3.4 Build No. 3.4-20130322.1 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.EventObject
com.tplan.robot.remoteclient.RemoteDesktopServerEvent
public class RemoteDesktopServerEvent
Desktop client event describes an event on the server side, such as server connect or disconnect, desktop image update, change of the clipboard content on the server side and other.
T-Plan Robot Enterprise, (C) 2009-2013 T-Plan Limited. All rights reserved.
| Field Summary | |
|---|---|
static int |
SERVER_BELL_EVENT
|
static int |
SERVER_CLIPBOARD_EVENT
|
static int |
SERVER_CONNECTED_EVENT
|
static int |
SERVER_CONNECTING_EVENT
|
static int |
SERVER_CONNECTION_POOLED
|
static int |
SERVER_CONNECTION_PROGRESS_EVENT
|
static int |
SERVER_CONNECTION_REUSED
|
static int |
SERVER_DISCONNECTED_EVENT
|
static int |
SERVER_DISCONNECTING_EVENT
|
static int |
SERVER_GUI_MESSAGE_EVENT
|
static int |
SERVER_IMAGE_AVAILABLE_EVENT
|
static int |
SERVER_INIT_EVENT
|
static int |
SERVER_IO_ERROR_EVENT
|
static int |
SERVER_UPDATE_EVENT
|
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
RemoteDesktopServerEvent(RemoteDesktopClient source,
Exception ex)
Constructor for I/O error events ( SERVER_IO_ERROR_EVENT type). |
|
RemoteDesktopServerEvent(RemoteDesktopClient source,
int messageType)
Generic constructor for all event types. |
|
RemoteDesktopServerEvent(RemoteDesktopClient source,
int messageType,
String text)
Constructor for server the SERVER_CLIPBOARD_EVENT and SERVER_CONNECTION_PROGRESS_EVENT
event types. |
|
RemoteDesktopServerEvent(RemoteDesktopClient source,
Rectangle updateRect)
Constructor for screen update events ( SERVER_UPDATE_EVENT type). |
|
RemoteDesktopServerEvent(RemoteDesktopClient source,
Rectangle updateRect,
boolean initial)
Constructor for screen update events ( SERVER_UPDATE_EVENT type). |
|
RemoteDesktopServerEvent(RemoteDesktopClient source,
String clipboardText)
Constructor for server clipboard update events ( SERVER_CLIPBOARD_EVENT type). |
|
| Method Summary | |
|---|---|
boolean |
canContinue()
|
RemoteDesktopClient |
getClient()
|
String |
getClipboardText()
|
Exception |
getException()
|
int |
getMessageType()
|
String |
getProgressMessage()
|
Resumable |
getResumable()
|
Object |
getSource()
|
Rectangle |
getUpdateRect()
|
long |
getWhen()
|
boolean |
isInitialUpdate()
|
void |
setWhen(long when)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int SERVER_CONNECTING_EVENT
public static final int SERVER_CONNECTED_EVENT
public static final int SERVER_INIT_EVENT
public static final int SERVER_DISCONNECTING_EVENT
public static final int SERVER_DISCONNECTED_EVENT
public static final int SERVER_IMAGE_AVAILABLE_EVENT
public static final int SERVER_CONNECTION_PROGRESS_EVENT
public static final int SERVER_GUI_MESSAGE_EVENT
public static final int SERVER_CONNECTION_POOLED
public static final int SERVER_CONNECTION_REUSED
public static final int SERVER_UPDATE_EVENT
public static final int SERVER_BELL_EVENT
public static final int SERVER_CLIPBOARD_EVENT
public static final int SERVER_IO_ERROR_EVENT
| Constructor Detail |
|---|
public RemoteDesktopServerEvent(RemoteDesktopClient source,
int messageType)
source - event source (a desktop client).messageType - message type, one of the SERVER_ prefixed
constants declared by this class.
public RemoteDesktopServerEvent(RemoteDesktopClient source,
Rectangle updateRect,
boolean initial)
SERVER_UPDATE_EVENT type).
source - event source (a desktop client).updateRect - updated screen rectangle.initial - the value of true indicates the devices depending on
the desktop image should eventually resize the view to the actual image
dimensions. This flag should be set to true when (1) the connection is
initiated and the update is the very first one or (2) when the desktop is
dynamically resized, for example through the DesktopSizeEncoding
encoding of the RFB protocol.
public RemoteDesktopServerEvent(RemoteDesktopClient source,
Rectangle updateRect)
SERVER_UPDATE_EVENT type).
It is equal to the RemoteDesktopServerEvent(com.tplan.robot.remoteclient.RemoteDesktopClient, java.awt.Rectangle, boolean)
constructor where the initial flag is set to false.
source - event source (a desktop client).updateRect - updated screen rectangle.
public RemoteDesktopServerEvent(RemoteDesktopClient source,
String clipboardText)
SERVER_CLIPBOARD_EVENT type).
source - event source (a desktop client).clipboardText - the new clipboard text received from the client.
public RemoteDesktopServerEvent(RemoteDesktopClient source,
int messageType,
String text)
SERVER_CLIPBOARD_EVENT and SERVER_CONNECTION_PROGRESS_EVENT
event types.
source - event source (a desktop client).text - the new clipboard or progress message text.
public RemoteDesktopServerEvent(RemoteDesktopClient source,
Exception ex)
SERVER_IO_ERROR_EVENT type).
source - event source (a desktop client).ex - the thrown I/O exception.| Method Detail |
|---|
public int getMessageType()
public Rectangle getUpdateRect()
public Exception getException()
public long getWhen()
public void setWhen(long when)
public String getClipboardText()
public String getProgressMessage()
public RemoteDesktopClient getClient()
public Object getSource()
getSource in class EventObjectpublic Resumable getResumable()
public boolean canContinue()
public String toString()
toString in class EventObjectpublic boolean isInitialUpdate()
|
T-Plan Robot Enterprise 3.4 Build No. 3.4-20130322.1 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||