org.tbee.swing
Class ProgressMonitorMulti

java.lang.Object
  extended by org.tbee.swing.ProgressMonitorMulti

public class ProgressMonitorMulti
extends Object

Replacement for Swing's ProgressMonitor


Field Summary
static String CANCELLABLE_PROPERTY_ID
           
static String COMPONENT_PROPERTY_ID
           
static String MESSAGE_PROPERTY_ID
           
static String MILLISTODECIDETOPOPUP_PROPERTY_ID
           
static String MILLISTOPOPUP_PROPERTY_ID
           
static String MODALITYTYPE_PROPERTY_ID
           
static String NumberOfProgessBars_PROPERTY_ID
           
 
Constructor Summary
ProgressMonitorMulti(Component parentComponent, String message, int number)
           
 
Method Summary
 void close()
          Indicate that the operation is complete.
 boolean getCancellable()
          Cancellable:
 Component getComponent()
          Component:
 String getMessage()
          Message: the progress message
 int getMillisToDecideToPopup()
          MillisToDecideToPopup: NOT USED!! the amount of time this object waits before deciding whether or not to popup a progress monitor
 int getMillisToPopup()
          MillisToPopup: Specifies the amount of time it will take for the popup to appear.
 Dialog.ModalityType getModalityType()
          ModalityType: beware, this may block!
 int getNumberOfProgessBars()
          NumberOfProgessBars:
 nl.knowledgeplaza.util.ProgressListener getProgressListener(int idx)
          ProgressListeners
 boolean isCanceled()
          Returns true if the user hits the Cancel button in the progress dialog.
 void setCancellable(boolean value)
           
 void setComponent(Component value)
           
 void setMessage(String value)
           
 void setMillisToDecideToPopup(int value)
           
 void setMillisToPopup(int value)
           
 void setModalityType(Dialog.ModalityType value)
           
 void setNumberOfProgessBars(int value)
           
 ProgressMonitorMulti showImmediately()
           
 ProgressMonitorMulti startTimer()
           
 ProgressMonitorMulti stopTimer()
           
 ProgressMonitorMulti withCancellable(boolean value)
           
 ProgressMonitorMulti withComponent(Component value)
           
 ProgressMonitorMulti withMessage(String value)
           
 ProgressMonitorMulti withMillisToDecideToPopup(int value)
           
 ProgressMonitorMulti withMillisToPopup(int value)
           
 ProgressMonitorMulti withModalityType(Dialog.ModalityType value)
           
 ProgressMonitorMulti withNumberOfProgessBars(int value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPONENT_PROPERTY_ID

public static final String COMPONENT_PROPERTY_ID
See Also:
Constant Field Values

MILLISTODECIDETOPOPUP_PROPERTY_ID

public static final String MILLISTODECIDETOPOPUP_PROPERTY_ID
See Also:
Constant Field Values

MILLISTOPOPUP_PROPERTY_ID

public static final String MILLISTOPOPUP_PROPERTY_ID
See Also:
Constant Field Values

MESSAGE_PROPERTY_ID

public static final String MESSAGE_PROPERTY_ID
See Also:
Constant Field Values

NumberOfProgessBars_PROPERTY_ID

public static final String NumberOfProgessBars_PROPERTY_ID
See Also:
Constant Field Values

MODALITYTYPE_PROPERTY_ID

public static final String MODALITYTYPE_PROPERTY_ID
See Also:
Constant Field Values

CANCELLABLE_PROPERTY_ID

public static final String CANCELLABLE_PROPERTY_ID
See Also:
Constant Field Values
Constructor Detail

ProgressMonitorMulti

public ProgressMonitorMulti(Component parentComponent,
                            String message,
                            int number)
Parameters:
parentComponent -
message -
Method Detail

getComponent

public Component getComponent()
Component:


setComponent

public void setComponent(Component value)

withComponent

public ProgressMonitorMulti withComponent(Component value)

getMillisToDecideToPopup

public int getMillisToDecideToPopup()
MillisToDecideToPopup: NOT USED!! the amount of time this object waits before deciding whether or not to popup a progress monitor


setMillisToDecideToPopup

public void setMillisToDecideToPopup(int value)

withMillisToDecideToPopup

public ProgressMonitorMulti withMillisToDecideToPopup(int value)

getMillisToPopup

public int getMillisToPopup()
MillisToPopup: Specifies the amount of time it will take for the popup to appear. (If the predicted time remaining is less than this time, the popup won't be displayed.)


setMillisToPopup

public void setMillisToPopup(int value)

withMillisToPopup

public ProgressMonitorMulti withMillisToPopup(int value)

getMessage

public String getMessage()
Message: the progress message


setMessage

public void setMessage(String value)

withMessage

public ProgressMonitorMulti withMessage(String value)

getNumberOfProgessBars

public int getNumberOfProgessBars()
NumberOfProgessBars:


setNumberOfProgessBars

public void setNumberOfProgessBars(int value)

withNumberOfProgessBars

public ProgressMonitorMulti withNumberOfProgessBars(int value)

getModalityType

public Dialog.ModalityType getModalityType()
ModalityType: beware, this may block!


setModalityType

public void setModalityType(Dialog.ModalityType value)

withModalityType

public ProgressMonitorMulti withModalityType(Dialog.ModalityType value)

stopTimer

public ProgressMonitorMulti stopTimer()

startTimer

public ProgressMonitorMulti startTimer()

getProgressListener

public nl.knowledgeplaza.util.ProgressListener getProgressListener(int idx)
ProgressListeners


close

public void close()
Indicate that the operation is complete. This thread must always run inside the EDT


isCanceled

public boolean isCanceled()
Returns true if the user hits the Cancel button in the progress dialog.


getCancellable

public boolean getCancellable()
Cancellable:


setCancellable

public void setCancellable(boolean value)

withCancellable

public ProgressMonitorMulti withCancellable(boolean value)

showImmediately

public ProgressMonitorMulti showImmediately()


Copyright © 2012 KnowledgePlaza. All Rights Reserved.