Adempiere 3.5.2a

org.compiere.util
Interface ASyncProcess

All Known Implementing Classes:
AbstractADWindowPanel, ADWindowPanel, APanel, ASyncProcessBase, ProcessDialog, VInOutGen, VInOutInvoiceGen, VInvoiceGen, VMRPDetailed, VOrderDistribution, VOrderPlanning, VOrderReceiptIssue, VPaySelect

public interface ASyncProcess

Async Process Interface.

The Process implements the methods. The Worker is started like MyWorker.start()

The worker's run method basically executes

      process.lockUI(pi);
      process.executeAsync(pi);
      process.unlockUI(pi);
  
The isUILocked() method is used internally (not called by worker).

Version:
$Id: ASyncProcess.java,v 1.2 2006/07/30 00:51:05 jjanke Exp $
Author:
Jorg Janke

Method Summary
 void executeASync(ProcessInfo pi)
          Method to be executed async.
 boolean isUILocked()
          Is the UI locked (Internal method)
 void lockUI(ProcessInfo pi)
          Lock User Interface.
 void unlockUI(ProcessInfo pi)
          Unlock User Interface.
 

Method Detail

lockUI

void lockUI(ProcessInfo pi)
Lock User Interface. Called from the Worker before processing

Parameters:
pi - process info

unlockUI

void unlockUI(ProcessInfo pi)
Unlock User Interface. Called from the Worker when processing is done

Parameters:
pi - result of execute ASync call

isUILocked

boolean isUILocked()
Is the UI locked (Internal method)

Returns:
true, if UI is locked

executeASync

void executeASync(ProcessInfo pi)
Method to be executed async. Called from the Worker

Parameters:
pi - ProcessInfo

Adempiere 3.5.2a

Adempiere® is a registered trademark of ADempiere Business Inc. ©2004-2008 HumanFlash.com All rights reserved.