Class SwingQueries

java.lang.Object
org.jtrim2.swing.concurrent.query.SwingQueries

public final class SwingQueries extends Object
Defines utility methods to help with asynchronous data retrieval in Swing applications.
  • Method Details

    • getSwingBackgroundDataProvider

      public static <IDType, RightType> BackgroundDataProvider<IDType,RightType> getSwingBackgroundDataProvider(AccessManager<IDType,RightType> accessManager)
      Creates a BackgroundDataProvider serving the queried data on the AWT Event Dispatch Thread.
      Type Parameters:
      IDType - the type of the request ID of the underlying access manager
      RightType - the type of the rights handled by the underlying access manager
      Parameters:
      accessManager - the AccessManager from which access tokens are requested to transfer data in their context. This argument cannot be null.
      Returns:
      a BackgroundDataProvider serving the queried data on the AWT Event Dispatch Thread. This method never returns null.