java.lang.Object
org.jtrim2.swing.concurrent.query.SwingQueries
Defines utility methods to help with asynchronous data retrieval in Swing applications.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <IDType,RightType>
BackgroundDataProvider<IDType,RightType> getSwingBackgroundDataProvider(AccessManager<IDType, RightType> accessManager) Creates aBackgroundDataProviderserving the queried data on the AWT Event Dispatch Thread.
-
Method Details
-
getSwingBackgroundDataProvider
public static <IDType,RightType> BackgroundDataProvider<IDType,RightType> getSwingBackgroundDataProvider(AccessManager<IDType, RightType> accessManager) Creates aBackgroundDataProviderserving the queried data on the AWT Event Dispatch Thread.- Type Parameters:
IDType- the type of the request ID of the underlying access managerRightType- the type of the rights handled by the underlying access manager- Parameters:
accessManager- theAccessManagerfrom which access tokens are requested to transfer data in their context. This argument cannot benull.- Returns:
- a
BackgroundDataProviderserving the queried data on the AWT Event Dispatch Thread. This method never returnsnull.
-