Class SwingKitConfiguration

java.lang.Object
com.vaadin.swingkit.client.SwingKitConfiguration

public class SwingKitConfiguration extends Object
Handles configurations that control the behaviour of SwingKit. Configuration is created and managed in the SwingVaadinClient class.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final boolean
    Default value for using custom keyboard focus release system.
    static final long
    Default timeout set to wait for responses when making calls to a Vaadin view.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new instance of configuration.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Get the current timeout value.
    boolean
    Checks if the configuration is using custom keyboard focus release system.
    void
    Reset to default values.
    void
    setSmartFocus(boolean smartFocus)
    Set whether to use custom keyboard focus release system or not.
    void
    setTimeout(long timeout)
    Set the current timeout value.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • DEFAULT_TIMEOUT

      public static final long DEFAULT_TIMEOUT
      Default 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_FOCUS
      Default value for using custom keyboard focus release system. Default value is true.
      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.