public class GuiClientContext extends ClientContext
ClientContext
for Swing GUI applications that have a ClientMainFrame
.
If the isAutoReconnect flag is set in the ClientConfig
, then the following
reconnection strategy applies:GuiReconnectorTask
is started and runs a certain number of retries. If all of them fail
a ConnectionLostDialog
is popped up asking the user whether retrying should be continued.isExitOnClose
Constructor and Description |
---|
GuiClientContext(ClientConfig cfg) |
GuiClientContext(ClientConfig cfg,
boolean isConnectOnInit) |
Modifier and Type | Method and Description |
---|---|
protected ServerNotificationHandler |
createServerNotificationHandler()
Creates the
ServerNotificationHandler instance used to handle received ServerNotificationMessage s |
boolean |
isGuiClient()
Tells whether this client has a GUI
|
cancelTask, cancelTask, createClientConnector, createClientInfo, createTaskManager, getABOManager, getAdminActionValidator, getAgentParamsCache, getClientCache, getClientConfig, getClientConnector, getMainFrame, getNetActionValidator, getServerMessageHandler, getTaskManager, getUserActionValidator, getUserCache, init, isCoClient, loadTranslations, readClientInfo, setMainFrame, toDumpString, toString
checkInitialized, close, confirmCancelAllAsyncActivity, createErrorHandler, createLicense, createUncaughtExceptionHandler, exit, getApplicationConfig, getApplicationName, getCustomVersion, getDatabase, getErrorHandler, getEspritVersion, getJavaVersionManager, getLicense, getSupportedLanguages, getTextEditor, hasMainFrame, isClosed, isDefaultContext, isInitialized, registerForClose, setDatabase, setExitOnClose, showError, showError, showError, showInfo, showInfo, showWarning, showWarning
getLogChannel, getLogLevel, isLogDebug, isLogVerbose, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, setLogChannel, setLogLevel
configureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toString
public GuiClientContext(ClientConfig cfg)
public GuiClientContext(ClientConfig cfg, boolean isConnectOnInit)
public final boolean isGuiClient()
ApplicationContext
isGuiClient
in class ApplicationContext
protected final ServerNotificationHandler createServerNotificationHandler()
ServerNotificationHandler
instance used to handle received ServerNotificationMessage
screateServerNotificationHandler
in class ClientContext
Copyright © 2014 EsprIT-Systems. All Rights Reserved.