com.sybase.uep.bobclient.utils
Class ModalRunner

java.lang.Object
  extended by com.sybase.uep.bobclient.utils.ModalRunner

public class ModalRunner
extends java.lang.Object

Runs the given IModalRunnable in a separate thread under a protected mode: exception thrown in the runnable is passed to the runnable's exception handler. A modal dialog is shown during the running.

Author:
bdeng

Constructor Summary
ModalRunner(java.lang.String message)
          Constructor
 
Method Summary
 boolean isSuccessful()
          Returns true if the runner successfully runs the IModalRunnable.
 void run(IModalRunnable code)
          Runs the given IModalRunnable Call this method in UI thread.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModalRunner

public ModalRunner(java.lang.String message)
Constructor

Parameters:
message - the message to display on the modal dialog
Method Detail

run

public void run(IModalRunnable code)
Runs the given IModalRunnable Call this method in UI thread.

Parameters:
code - the IModalRunnable to run

isSuccessful

public boolean isSuccessful()
Returns true if the runner successfully runs the IModalRunnable.

Returns:
true if the runner successfully runs the IModalRunnable.