net.datacrow.core.wf
Class UIUpdater

java.lang.Object
  extended by net.datacrow.core.wf.UIUpdater
All Implemented Interfaces:
java.lang.Runnable

public class UIUpdater
extends java.lang.Object
implements java.lang.Runnable

This class can be used by a Swing Worker implementation. Executes the UI requests (see IRequest).

Author:
Robert Jan van der Waals

Constructor Summary
UIUpdater(Requests requests, boolean qryWasSuccess)
          Creates a new instance.
 
Method Summary
 void close()
          Free all resources.
 void run()
          Execute the requests.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UIUpdater

public UIUpdater(Requests requests,
                 boolean qryWasSuccess)
Creates a new instance.

Parameters:
objects - The items, if any.
requests - The requests to be executed.
qryWasSuccess - Indicates if the task requesting the UI update was successful.
Method Detail

close

public void close()
Free all resources.


run

public void run()
Execute the requests.

Specified by:
run in interface java.lang.Runnable