* more responsive implementation of lock/unlock.
This commit is contained in:
parent
7f3483d363
commit
7e5ad8a427
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue