Class BackgroundCancellableProcessHelper
- java.lang.Object
-
- org.pentaho.reporting.libraries.designtime.swing.background.BackgroundCancellableProcessHelper
-
public class BackgroundCancellableProcessHelper extends Object
Helper class used to run database queries in the background and provide the user with a cancellable "wait" dialog.
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static void
executeProcessWithCancelDialog(Thread workerThread, CancelListener cancelListener, Component parent)
Deprecated.Always give a messagestatic void
executeProcessWithCancelDialog(Thread workerThread, CancelListener cancelListener, Component parent, String message)
static void
executeProcessWithCancelDialog(Thread workerThread, CancelListener cancelListener, Component parent, String message, ProgressFeed progressFeed)
protected static Window
getWindowAncestor(Component component)
-
-
-
Method Detail
-
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)
-
-