Class BackgroundCancellableProcessHelper
java.lang.Object
org.pentaho.reporting.libraries.designtime.swing.background.BackgroundCancellableProcessHelper
Helper class used to run database queries in the background and provide the user with a cancellable "wait" dialog.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidexecuteProcessWithCancelDialog(Thread workerThread, CancelListener cancelListener, Component parent) Deprecated.Always give a messagestatic voidexecuteProcessWithCancelDialog(Thread workerThread, CancelListener cancelListener, Component parent, String message) static voidexecuteProcessWithCancelDialog(Thread workerThread, CancelListener cancelListener, Component parent, String message, ProgressFeed progressFeed) protected static WindowgetWindowAncestor(Component component)
-
Method Details
-
executeProcessWithCancelDialog
public static void executeProcessWithCancelDialog(Thread workerThread, CancelListener cancelListener, Component parent) Deprecated.Always give a messageExecutes the specified PreparedStatement in a background thread while displaying a "please wait" dialog with a Cancel button. If the JDBC driver running the statement supports cancelling the query, the cancel button will cancel the query.- Parameters:
workerThread- the thread to run and monitorcancelListener- a optional listener to cancel the processparent- the parent frame to which the dialog will attach
-
executeProcessWithCancelDialog
public static void executeProcessWithCancelDialog(Thread workerThread, CancelListener cancelListener, Component parent, String message) -
executeProcessWithCancelDialog
public static void executeProcessWithCancelDialog(Thread workerThread, CancelListener cancelListener, Component parent, String message, ProgressFeed progressFeed) -
getWindowAncestor
-