Package org.adempiere.webui.apps
Class WProcessCtl
- java.lang.Object
-
- org.compiere.apps.AbstractProcessCtl
-
- org.adempiere.webui.apps.WProcessCtl
-
- All Implemented Interfaces:
Runnable
public class WProcessCtl extends AbstractProcessCtl
Ported from org.compiere.apps.ProcessCtl- Author:
- hengsin
-
-
Constructor Summary
Constructors Constructor Description WProcessCtl(IProcessUI aProcessUI, int WindowNo, ProcessInfo pi, Trx trx)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
lock()
Lock UI and show Waitingstatic void
process(int WindowNo, ProcessInfo pi, Trx trx)
static void
process(int WindowNo, ProcessInfo pi, Trx trx, org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> listener)
Process Control- Get Instance ID - Get Parameters - execute (lock - start process - unlock)
Creates a ProcessCtl instance, which calls lockUI and unlockUI if parent is a ASyncProcessstatic void
process(IProcessUI aProcessUI, int WindowNo, IProcessParameter parameter, ProcessInfo pi, Trx trx)
Async Process - Do it all.protected void
unlock()
Unlock UI and dispose Waiting.protected void
updateProgressWindowTimerEstimate(int estSeconds)
protected void
updateProgressWindowTitle(String title)
-
Methods inherited from class org.compiere.apps.AbstractProcessCtl
getParent, getProcessInfo, getProcessMonitor, getWindowNo, isServerProcess, run, start
-
-
-
-
Constructor Detail
-
WProcessCtl
public WProcessCtl(IProcessUI aProcessUI, int WindowNo, ProcessInfo pi, Trx trx)
- Parameters:
aProcessUI
-WindowNo
-pi
-trx
-
-
-
Method Detail
-
process
public static void process(int WindowNo, ProcessInfo pi, Trx trx)
-
process
public static void process(int WindowNo, ProcessInfo pi, Trx trx, org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> listener)
Process Control- Get Instance ID - Get Parameters - execute (lock - start process - unlock)
Creates a ProcessCtl instance, which calls lockUI and unlockUI if parent is a ASyncProcess- Parameters:
WindowNo
- window nopi
- ProcessInfo process infotrx
- Transaction
-
process
public static void process(IProcessUI aProcessUI, int WindowNo, IProcessParameter parameter, ProcessInfo pi, Trx trx)
Async Process - Do it all.- Get Instance ID - Get Parameters - execute (lock - start process - unlock)
Creates a ProcessCtl instance, which calls lockUI and unlockUI if parent is a ASyncProcess
Called from ProcessDialog.actionPerformed- Parameters:
aProcessUI
- ASyncProcess and ContainerWindowNo
- window noparameter
- Process Parameter Panelpi
- ProcessInfo process infotrx
- Transaction
-
updateProgressWindowTimerEstimate
protected void updateProgressWindowTimerEstimate(int estSeconds)
- Specified by:
updateProgressWindowTimerEstimate
in classAbstractProcessCtl
-
updateProgressWindowTitle
protected void updateProgressWindowTitle(String title)
- Specified by:
updateProgressWindowTitle
in classAbstractProcessCtl
-
lock
protected void lock()
Description copied from class:AbstractProcessCtl
Lock UI and show Waiting- Specified by:
lock
in classAbstractProcessCtl
-
unlock
protected void unlock()
Description copied from class:AbstractProcessCtl
Unlock UI and dispose Waiting. Called from run()- Specified by:
unlock
in classAbstractProcessCtl
-
-