* more responsive implementation of lock/unlock.

This commit is contained in:
Heng Sin Low 2008-07-14 05:54:53 +00:00
parent 7f3483d363
commit 7e5ad8a427
2 changed files with 6 additions and 1 deletions

View File

@ -256,6 +256,9 @@ public class ProcessModalDialog extends Window implements EventListener
public void startProcess() public void startProcess()
{ {
m_pi.setPrintPreview(true); m_pi.setPrintPreview(true);
if (m_ASyncProcess != null) {
m_ASyncProcess.lockUI(m_pi);
}
ProcessCtl.process(m_ASyncProcess, m_WindowNo, parameterPanel, m_pi, null); ProcessCtl.process(m_ASyncProcess, m_WindowNo, parameterPanel, m_pi, null);
dispose(); dispose();
} }

View File

@ -1201,6 +1201,8 @@ public abstract class AbstractADWindowPanel extends AbstractUIPart implements To
} }
public void lockUI(ProcessInfo pi) { public void lockUI(ProcessInfo pi) {
if (m_uiLocked) return;
m_uiLocked = true; m_uiLocked = true;
boolean notPrint = pi != null boolean notPrint = pi != null
&& pi.getAD_Process_ID() != curTab.getAD_Process_ID() && pi.getAD_Process_ID() != curTab.getAD_Process_ID()