net.sourceforge.squirrel_sql.plugins.dataimport.gui
Class ProgressBarDialog

java.lang.Object
  extended by net.sourceforge.squirrel_sql.plugins.dataimport.gui.ProgressBarDialog

public class ProgressBarDialog
extends Object

This class shows a progress dialog while the file is imported.

Author:
Thorsten Mürell

Constructor Summary
ProgressBarDialog()
           
 
Method Summary
static void dispose()
          Closes the progress dialog.
static JDialog getDialog(Frame owner, String title, boolean modal, ActionListener listener)
          Returns the dialog
static void incrementBar(int value)
          Increments the progress bar by the given value
static void setBarMinMax(int min, int max)
          Sets the minimum and maximum values for the dialog.
static void setBarValue(int value)
          Sets the value for the progress bar
static void setIndeterminate()
          Sets the Dialog to indeterminate.
static void setMessage(String msg)
          Sets the message for the progress bar dialog
static void setVisible(boolean visible)
          Sets the visibiility of the progress dialog
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProgressBarDialog

public ProgressBarDialog()
Method Detail

getDialog

public static JDialog getDialog(Frame owner,
                                String title,
                                boolean modal,
                                ActionListener listener)
Returns the dialog

Parameters:
owner - The owner
title - The title for the dialog
modal - If this should be a modal dialog
listener - The listener for actions
Returns:
The dialog to show

setMessage

public static void setMessage(String msg)
Sets the message for the progress bar dialog

Parameters:
msg - The message to show

setIndeterminate

public static void setIndeterminate()
Sets the Dialog to indeterminate. Use this, when you do not know the number of items to process.


setBarMinMax

public static void setBarMinMax(int min,
                                int max)
Sets the minimum and maximum values for the dialog.

Parameters:
min - The minimum value
max - The maximum value

setBarValue

public static void setBarValue(int value)
Sets the value for the progress bar

Parameters:
value - The current value

incrementBar

public static void incrementBar(int value)
Increments the progress bar by the given value

Parameters:
value - The value to increment the bar

setVisible

public static void setVisible(boolean visible)
Sets the visibiility of the progress dialog

Parameters:
visible - a boolean value indicating whether or not to make the dialog visible.

dispose

public static void dispose()
Closes the progress dialog.



Copyright © 2001-2011. All Rights Reserved.