Package com.vaadin.swingkit.client
Class SwingKitConfiguration
java.lang.Object
com.vaadin.swingkit.client.SwingKitConfiguration
Handles configurations that control the behaviour of SwingKit. Configuration
is created and managed in the
SwingVaadinClient class.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanDefault value for using custom keyboard focus release system.static final longDefault timeout set to wait for responses when making calls to a Vaadin view. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongGet the current timeout value.booleanChecks if the configuration is using custom keyboard focus release system.voidreset()Reset to default values.voidsetSmartFocus(boolean smartFocus) Set whether to use custom keyboard focus release system or not.voidsetTimeout(long timeout) Set the current timeout value.
-
Field Details
-
DEFAULT_TIMEOUT
public static final long DEFAULT_TIMEOUTDefault timeout set to wait for responses when making calls to a Vaadin view. Default value is 5 minutes.- See Also:
-
DEFAULT_SMART_FOCUS
public static final boolean DEFAULT_SMART_FOCUSDefault value for using custom keyboard focus release system. Default value istrue.- See Also:
-
-
Constructor Details
-
SwingKitConfiguration
public SwingKitConfiguration()Creates a new instance of configuration.
-
-
Method Details
-
isSmartFocus
public boolean isSmartFocus()Checks if the configuration is using custom keyboard focus release system.- Returns:
- whether custom keyboard focus release system is enabled or not.
-
setSmartFocus
public void setSmartFocus(boolean smartFocus) Set whether to use custom keyboard focus release system or not.- Parameters:
smartFocus- the new value to set.
-
reset
public void reset()Reset to default values. -
getTimeout
public long getTimeout()Get the current timeout value.- Returns:
- the current timeout value.
-
setTimeout
public void setTimeout(long timeout) Set the current timeout value.- Parameters:
timeout- the value to set the timeout to.
-