public class TestConnector extends Object implements ConnectorLoadInterface, ServerProcessListener, VirtualPanelEventListener, VirtualPanelCreationListener, ClientSessionListener, VirtualComponentListener
ICON_CRITICAL, ICON_INFORMATION, ICON_NOICON, ICON_QUERY, ICON_QUESTION, ICON_WARNING, MB_ABORTRETRYIGNORE, MB_CANCEL, MB_ENTER, MB_ENTERCANCEL, MB_OK, MB_OKCANCEL, MB_RETRYCANCEL, MB_YESNO, MB_YESNOCANCEL, MBID_CANCEL, MBID_DEFAULT, MBID_ENTER, MBID_IGNORE, MBID_NO, MBID_OK, MBID_RETRY, MBID_YES
Constructor and Description |
---|
TestConnector() |
Modifier and Type | Method and Description |
---|---|
String |
getConnectorDescription()
Gets the description of this connector (perhaps not the same one as specified
in the "onConnectorLoad" call).
|
long |
getRemainingStartTime(ClientSessionManager csm,
int restartType)
Gets the time in milliseconds before a start of the server is
possible.
|
long |
getRemainingStopTime(ClientSessionManager csm,
int restartType)
Gets the time in milliseconds before a stop of the server is
possible.
|
void |
onAction(VirtualPanel panel,
VirtualControl control,
String controlID)
Push buttons generates this event when selected.
|
void |
onAction(VirtualPanel panel,
VirtualMenuItem menuItem,
String controlID)
Menu items (or pop-up menu items) generates this event when selected.
|
void |
onCheckedChange(VirtualPanel panel,
VirtualControl control,
String controlID,
int state)
Check boxes and radio buttons generates this event when state is changed on the client side.
|
void |
onClientInitialize(ClientSession cs,
VirtualSessionManager vsm)
Called when the client is initialized, but before any panel session, application panel,
etc has been created.
|
void |
onClientUpdatedBegin(VirtualPanel panel,
VirtualControl component)
Called prior to the client update being performed.
|
void |
onClientUpdatedEnd(VirtualPanel panel,
VirtualControl component)
Called after the client update has been performed.
|
void |
onConnect(ClientSession cs)
Called when the client session has been established.
|
void |
onConnectorLoad(ClientSessionManager csm,
String description)
Called when the Connector has been loaded.
|
void |
onConnectorUnload(ClientSessionManager csm)
Called when the Connector has been unloaded.
|
void |
onContentChanged(VirtualPanel panel,
VirtualControl control,
String controlID,
String text)
Entry fields and multiple line entry fields generates this message.
|
void |
onContentChanged(VirtualPanel panel,
VirtualControl control,
String controlID,
String text,
int line)
Combination boxes and spin buttons generates this message.
|
void |
onControlEvent(VirtualPanel panel,
VirtualControl control,
int event)
The general notification event for "normal" controls.
|
void |
onDispose(ClientSession cs)
Called when the client session is going to be disposed.
|
void |
onDisposed(ClientSession cs)
Called when the client session has been disposed of, typically to
let the connector perform some kind of clean up.
|
void |
onError(ClientSession cs,
Throwable t)
Called when the client session has caused an error and will eventually
be disposed of.
|
void |
onFireCreate(VirtualPanel panel)
Called prior to firing the panel creation transaction to the client.
|
void |
onFireUpdate(VirtualPanel panel)
Called prior to firing the panel update transaction to the client.
|
void |
onFocus(VirtualPanel panel,
VirtualControl component)
Called when the client or the system has changed focus in a panel.
|
void |
onFocusGained(VirtualPanel panel,
VirtualControl control,
String controlID)
Controls that can receive input focus generates this event when they gain focus.
|
void |
onFocusLost(VirtualPanel panel,
VirtualControl control,
String controlID)
Controls that can receive input focus generates this event when they lose focus.
|
void |
onIssueActionBegin(VirtualPanel panel,
int actionType,
int action,
VirtualInterface item)
Called when an action is to be performed.
|
void |
onIssueActionEnd(VirtualPanel panel,
int actionType,
int action,
VirtualInterface item)
Called when an action has been performed.
|
void |
onMenuAction(VirtualPanel panel,
VirtualMenuItem menuItem)
Menu items generates this event when selected.
|
void |
onPageActivated(VirtualPanel panel)
Called when a notebook page becomes active due to user
interaction.
|
boolean |
onPanelClose(VirtualPanel panel)
Called when the close button of a panel is pressed.
|
boolean |
onPanelClosing(VirtualPanel panel)
Called when the close button of a panel is pressed,
but before any other processing has been done.
|
void |
onPanelCreate(VirtualPanel panel)
Called when a panel is created.
|
void |
onPanelCreation(VirtualPanel panel)
Called when a panel is created.
|
void |
onPanelDestroy(VirtualPanel panel)
Called when a panel is about to be destroyed.
|
void |
onPanelDestruction(VirtualPanel panel)
Called when a panel is about to be destroyed.
|
void |
onPropertyChange(VirtualPanel panel,
VirtualControl control,
String controlID,
String propertyName,
Object property)
A control notifies the listener using this event when custom properties
needs to be handled.
|
void |
onRefreshBegin(VirtualPanel panel,
VirtualControl component)
Called before the refresh of a component is going to be done.
|
void |
onRefreshEnd(VirtualPanel panel,
VirtualControl component)
Called after the refresh of a component has been done.
|
void |
onSelectionChanged(VirtualPanel panel,
VirtualCListBox list,
String controlID,
int line,
int column)
List boxes generates this message.
|
void |
onStart(ClientSessionManager csm,
int restartType)
Called just after all the Connectors are loaded and when the server is
about to start.
|
void |
onStarted(ClientSessionManager csm,
int restartType)
Called when the server has completed all the startup jobs and is in
ready state.
|
void |
onStop(ClientSessionManager csm,
int restartType)
Called when the server is about to initiate the stop process.
|
void |
onStopped(ClientSessionManager csm,
int restartType)
Called when the server has reached the full stop state and will
unload all connectors.
|
public void onConnectorLoad(ClientSessionManager csm, String description)
onConnectorLoad
in interface ConnectorLoadInterface
csm
- The instance of the ClientSessionManager.public void onConnectorUnload(ClientSessionManager csm)
onConnectorUnload
in interface ConnectorLoadInterface
csm
- The instance of the ClientSessionManager.public String getConnectorDescription()
getConnectorDescription
in interface ConnectorLoadInterface
public void onStart(ClientSessionManager csm, int restartType)
onStart
in interface ServerProcessListener
csm
- The ClientSessionManager instance.restartType
- Value indicating the restart type of the server process,public long getRemainingStartTime(ClientSessionManager csm, int restartType)
getRemainingStartTime
in interface ServerProcessListener
csm
- The ClientSessionManager instance.restartType
- Value indicating the restart type of the server process,public void onStarted(ClientSessionManager csm, int restartType)
onStarted
in interface ServerProcessListener
csm
- The ClientSessionManager instance.restartType
- Value indicating the restart type of the server process,public void onStop(ClientSessionManager csm, int restartType)
onStop
in interface ServerProcessListener
csm
- The ClientSessionManager instance.restartType
- Value indicating the restart type of the server process.public long getRemainingStopTime(ClientSessionManager csm, int restartType)
getRemainingStopTime
in interface ServerProcessListener
csm
- The ClientSessionManager instance.restartType
- Value indicating the restart type of the server process,public void onStopped(ClientSessionManager csm, int restartType)
onStopped
in interface ServerProcessListener
csm
- The ClientSessionManager instance.restartType
- Value indicating the restart type of the server process.public void onConnect(ClientSession cs)
onConnect
in interface ClientSessionListener
cs
- The client session.public void onClientInitialize(ClientSession cs, VirtualSessionManager vsm)
onClientInitialize
in interface ClientSessionListener
cs
- The client session.vsm
- The VirtualSessionManager instance of the client session.public void onError(ClientSession cs, Throwable t)
onError
in interface ClientSessionListener
cs
- The client session.t
- The Throwable that caused the client session error.public void onDispose(ClientSession cs)
onDispose
in interface ClientSessionListener
cs
- The client session.public void onDisposed(ClientSession cs)
onDisposed
in interface ClientSessionListener
cs
- The client session.public void onPanelCreation(VirtualPanel panel)
onPanelCreation
in interface VirtualPanelCreationListener
public void onPanelDestruction(VirtualPanel panel)
onPanelDestruction
in interface VirtualPanelCreationListener
public void onPanelCreate(VirtualPanel panel)
onPanelCreate
in interface VirtualPanelListener
public void onPanelDestroy(VirtualPanel panel)
onPanelDestroy
in interface VirtualPanelListener
public void onRefreshBegin(VirtualPanel panel, VirtualControl component)
onRefreshBegin
in interface VirtualPanelEventListener
panel
- The virtual panel instance.component
- The virtual control, null when the panel is processed.public void onRefreshEnd(VirtualPanel panel, VirtualControl component)
onRefreshEnd
in interface VirtualPanelEventListener
panel
- The virtual panel instance.component
- The virtual control, null when the panel is processed.public void onClientUpdatedBegin(VirtualPanel panel, VirtualControl component)
onClientUpdatedBegin
in interface VirtualPanelEventListener
panel
- The virtual panel instance.component
- The virtual control, null when the panel is processed.public void onClientUpdatedEnd(VirtualPanel panel, VirtualControl component)
onClientUpdatedEnd
in interface VirtualPanelEventListener
panel
- The virtual panel instance.component
- The virtual control, null when the panel is processed.public void onFocus(VirtualPanel panel, VirtualControl component)
onFocus
in interface VirtualPanelEventListener
panel
- The virtual panel for new "viNew" component.component
- The component that receives the focus.public void onFireCreate(VirtualPanel panel)
onFireCreate
in interface VirtualPanelEventListener
panel
- The virtual panel instance.public void onFireUpdate(VirtualPanel panel)
onFireUpdate
in interface VirtualPanelEventListener
panel
- The virtual panel instance.public void onIssueActionBegin(VirtualPanel panel, int actionType, int action, VirtualInterface item)
ACTION_NONE = 1 ACTION_HOSTKEY = 2 ACTION_MENU = 3 ACTION_CONTROL = 4 ACTION_NOTEBOOKPAGE = 5 ACTION_POPUPMENU = 6 ACTION_CLOSEWINDOW = 7The "item" may be null when a virtual component does not apply.
onIssueActionBegin
in interface VirtualPanelEventListener
panel
- The panel in question.actionType
- The action type ACTION_*.action
- The action value.item
- The item for the Virtual Component or null if none applies.public void onIssueActionEnd(VirtualPanel panel, int actionType, int action, VirtualInterface item)
ACTION_NONE = 1 ACTION_HOSTKEY = 2 ACTION_MENU = 3 ACTION_CONTROL = 4 ACTION_NOTEBOOKPAGE = 5 ACTION_POPUPMENU = 6 ACTION_CLOSEWINDOW = 7The "item" may be null when a virtual component does not apply.
onIssueActionEnd
in interface VirtualPanelEventListener
panel
- The panel in question.actionType
- The action type ACTION_*.action
- The action value.item
- The item for the Virtual Component or null if none applies.public boolean onPanelClosing(VirtualPanel panel)
onPanelClose
is called.onPanelClosing
in interface VirtualPanelListener
onPanelClose(se.entra.phantom.server.VirtualPanel)
public boolean onPanelClose(VirtualPanel panel)
onPanelClose
in interface VirtualPanelListener
onPanelClosing(se.entra.phantom.server.VirtualPanel)
public void onPageActivated(VirtualPanel panel)
onPageActivated
in interface VirtualPanelListener
public void onFocusGained(VirtualPanel panel, VirtualControl control, String controlID)
onFocusGained
in interface VirtualComponentListener
public void onFocusLost(VirtualPanel panel, VirtualControl control, String controlID)
onFocusLost
in interface VirtualComponentListener
public void onContentChanged(VirtualPanel panel, VirtualControl control, String controlID, String text)
onContentChanged
in interface VirtualComponentListener
public void onContentChanged(VirtualPanel panel, VirtualControl control, String controlID, String text, int line)
line
parameter is set to -1 if no line is selected.onContentChanged
in interface VirtualComponentListener
public void onSelectionChanged(VirtualPanel panel, VirtualCListBox list, String controlID, int line, int column)
line
and column
parameter are individually set to -1 if no line or column is selected respectively.onSelectionChanged
in interface VirtualComponentListener
public void onAction(VirtualPanel panel, VirtualControl control, String controlID)
onAction
in interface VirtualComponentListener
public void onAction(VirtualPanel panel, VirtualMenuItem menuItem, String controlID)
onAction
in interface VirtualComponentListener
public void onControlEvent(VirtualPanel panel, VirtualControl control, int event)
The event
parameter is one of the events
as defined with the CE_*
variables.
The event
parameter can also be a user defined
value that starts with CE_USER_DEFINED
. In this case,
the control
parameter is a VirtualCUserWindow
instance.
onControlEvent
in interface VirtualComponentListener
public void onMenuAction(VirtualPanel panel, VirtualMenuItem menuItem)
onMenuAction
in interface VirtualComponentListener
public void onCheckedChange(VirtualPanel panel, VirtualControl control, String controlID, int state)
The state is 0=unchecked, 1=checked and 2=third state (only for check boxes, or PhantomCCheckBox.STATE_UNDETERMINED).
onCheckedChange
in interface VirtualComponentListener
public void onPropertyChange(VirtualPanel panel, VirtualControl control, String controlID, String propertyName, Object property)
The object is in general dependant of the property change event string.
onPropertyChange
in interface VirtualComponentListener
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.