public class RemoteDesktopServerEvent extends EventObject implements com.tplan.robot.remoteclient.rfb.RfbConstants
T-Plan Robot Enterprise, (C) 2009-2022 T-Plan Limited. All rights reserved.
Modifier and Type | Field and Description |
---|---|
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_PROPERTY_AVAILABLE_EVENT |
static int |
SERVER_RESIZED_EVENT |
static int |
SERVER_UPDATE_EVENT |
BYTEMASK, CINIT_EXCLUSIVE_DESKTOP, CINIT_SHARE_DESKTOP, ENCODING_COMPRESSION_LEVEL_PSEUDO, ENCODING_COPY_RECT, ENCODING_CORRE, ENCODING_CURSOR_PSEUDO, ENCODING_DESKTOP_SIZE, ENCODING_GII_PSEUDO, ENCODING_HEXTILE, ENCODING_HEXTILE_ANY_SUBRECTS, ENCODING_HEXTILE_BG_SPECIFIED, ENCODING_HEXTILE_FG_SPECIFIED, ENCODING_HEXTILE_RAW, ENCODING_HEXTILE_SUBRECTS_COLORED, ENCODING_JPEG_FINE_GRAINED_PSEUDO, ENCODING_JPEG_SUBSAMPLING_PSEUDO, ENCODING_JPEGQLVL, ENCODING_LASTRECT_PSEUDO, ENCODING_POINTER_POSITION, ENCODING_RAW, ENCODING_RRE, ENCODING_TIGHT, ENCODING_X_CURSOR_PSEUDO, ENCODING_ZLIB, ENCODING_ZLIBHEX, MSG_C2S_CLIENT_CUT_TEXT, MSG_C2S_FIX_COLOR_MAP_ENTRIES, MSG_C2S_FRAMEBUFFER_UPDATE_REQUEST, MSG_C2S_KEY_EVENT, MSG_C2S_POINTER_EVENT, MSG_C2S_SET_ENCODINGS, MSG_C2S_SET_PIXEL_FORMAT, MSG_S2C_BELL, MSG_S2C_COMMUNICATION_ERROR, MSG_S2C_CONNECTED, MSG_S2C_CONNECTING, MSG_S2C_DISCONNECTED, MSG_S2C_DISCONNECTING, MSG_S2C_FRAMEBUFFER_UPDATE, MSG_S2C_SERVER_CUT_TEXT, MSG_S2C_SERVER_INIT, MSG_S2C_SET_COLOR_MAP_ENTRIES, PROTOCOL_VERSION_3_3, PROTOCOL_VERSION_3_7, PROTOCOL_VERSION_3_8, RFB_LISTEN_PORT_OFFSET, RFB_PORT_OFFSET, SECURITY_CDEAN, SECURITY_INVALID, SECURITY_MD5, SECURITY_NONE, SECURITY_RA2, SECURITY_RA2NE, SECURITY_RESPONSE_FAILED, SECURITY_RESPONSE_OK, SECURITY_RESPONSE_TOO_MANY_ATTEMPTS, SECURITY_SASL, SECURITY_TIGHT, SECURITY_TLS, SECURITY_TYPE_NAMES, SECURITY_TYPES, SECURITY_ULTRA, SECURITY_VENCRYPT, SECURITY_VNC_AUTH, SPECIAL_KEY_CODES, VAR_LISTEN, VK_CONTEXT_MENU, VK_WINDOWS
Constructor and Description |
---|
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). |
RemoteDesktopServerEvent(RemoteDesktopClient source,
String propertyName,
Object propertyValue)
Constructor for server clipboard update events
(
SERVER_PROPERTY_AVAILABLE_EVENT type. |
Modifier and Type | Method and Description |
---|---|
boolean |
canContinue() |
RemoteDesktopClient |
getClient() |
String |
getClipboardPlainText()
Get the clipboard converted to plain text, i.e.
|
String |
getClipboardText() |
Exception |
getException() |
int |
getMessageType() |
String |
getProgressMessage() |
String |
getPropertyName()
Get name of the property received from the server.
|
Object |
getPropertyValue()
Get value of the property received from the server.
|
Resumable |
getResumable() |
Object |
getSource() |
Rectangle |
getUpdateRect() |
long |
getWhen() |
boolean |
isInitialUpdate() |
void |
setClipboardPlainText(String clipboardPlainText)
Set the plain clipboard text.
|
void |
setWhen(long when) |
String |
toString() |
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_PROPERTY_AVAILABLE_EVENT
public static final int SERVER_RESIZED_EVENT
public static final int SERVER_IO_ERROR_EVENT
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, String propertyName, Object propertyValue)
SERVER_PROPERTY_AVAILABLE_EVENT
type.source
- event source (a desktop client).propertyName
- the new clipboard text received from the client.propertyValue
- the property value.public RemoteDesktopServerEvent(RemoteDesktopClient source, int messageType, String text)
SERVER_CLIPBOARD_EVENT
and
SERVER_CONNECTION_PROGRESS_EVENT
event types.source
- event source (a desktop client).messageType
- the message type constant.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.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 EventObject
public Resumable getResumable()
public boolean canContinue()
public String toString()
toString
in class EventObject
public boolean isInitialUpdate()
public String getPropertyName()
SERVER_PROPERTY_AVAILABLE_EVENT
.public Object getPropertyValue()
SERVER_PROPERTY_AVAILABLE_EVENT
.public String getClipboardPlainText()
public void setClipboardPlainText(String clipboardPlainText)
clipboardPlainText
- the clipboard content as plain text.