Package org.compiere.apps.form
Class VPaySelect
- java.lang.Object
-
- org.compiere.apps.form.PaySelect
-
- org.compiere.apps.form.VPaySelect
-
- All Implemented Interfaces:
ActionListener,EventListener,TableModelListener,IProcessUI,FormPanel
public class VPaySelect extends PaySelect implements FormPanel, ActionListener, TableModelListener, IProcessUI
Create Manual Payments From (AP) Invoices or (AR) Credit Memos. Allows user to select Invoices for payment. When Processed, PaySelection is created and optionally posted/generated and printed- Version:
- $Id: VPaySelect.java,v 1.2 2008/07/11 08:20:12 cruiz Exp $
- Author:
- Jorg Janke
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.compiere.apps.form.PaySelect
PaySelect.BankInfo
-
-
Field Summary
-
Fields inherited from class org.compiere.apps.form.PaySelect
log, m_format, m_isLocked, m_isOnePaymentPerInvoice, m_noSelected, m_ps, m_WindowNo, trx
-
-
Constructor Summary
Constructors Constructor Description VPaySelect()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(ActionEvent e)ActionListenervoidask(String message, Callback<Boolean> callback)Prompt for user input.voidaskForInput(String message, Callback<String> callback)voidcalculateSelection()Calculate selected rowsvoiddispose()Disposevoiddownload(File file)add to list of file available for download after process endvoidexecuteASync(ProcessInfo pi)Method to be executed async.voidinit(int WindowNo, FormFrame frame)Initialize PanelbooleanisUILocked()Is the UI locked (Internal method)voidlockUI(ProcessInfo pi)Lock User Interface Called from the Worker before processingvoidstatusUpdate(String message)Provide status feedback to uservoidtableChanged(TableModelEvent e)Table Model ListenervoidunlockUI(ProcessInfo pi)Unlock User Interface.-
Methods inherited from class org.compiere.apps.form.PaySelect
calculateSelection, generatePaySelect, getBankAccountData, getBPartnerData, getDocTypeData, getPaymentRuleData, loadTableInfo, prepareTable
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.adempiere.util.IProcessUI
askForInput, showInfoWindow, showReports
-
-
-
-
Method Detail
-
init
public void init(int WindowNo, FormFrame frame)Initialize Panel
-
actionPerformed
public void actionPerformed(ActionEvent e)
ActionListener- Specified by:
actionPerformedin interfaceActionListener- Parameters:
e- event
-
tableChanged
public void tableChanged(TableModelEvent e)
Table Model Listener- Specified by:
tableChangedin interfaceTableModelListener- Parameters:
e- event
-
calculateSelection
public void calculateSelection()
Calculate selected rows. - add up selected rows
-
lockUI
public void lockUI(ProcessInfo pi)
Lock User Interface Called from the Worker before processing- Specified by:
lockUIin interfaceIProcessUI- Parameters:
pi- process info
-
unlockUI
public void unlockUI(ProcessInfo pi)
Unlock User Interface. Called from the Worker when processing is done- Specified by:
unlockUIin interfaceIProcessUI- Parameters:
pi- process info
-
isUILocked
public boolean isUILocked()
Is the UI locked (Internal method)- Specified by:
isUILockedin interfaceIProcessUI- Returns:
- true, if UI is locked
-
executeASync
public void executeASync(ProcessInfo pi)
Method to be executed async. Called from the ASyncProcess worker- Parameters:
pi- process info
-
statusUpdate
public void statusUpdate(String message)
Description copied from interface:IProcessUIProvide status feedback to user- Specified by:
statusUpdatein interfaceIProcessUI
-
ask
public void ask(String message, Callback<Boolean> callback)
Description copied from interface:IProcessUIPrompt for user input. Example Usage in process:final StringBuffer answer = new StringBuffer(); aProcessMonitor.ask(adMessage, new Callback() { - Specified by:
askin interfaceIProcessUI
-
download
public void download(File file)
Description copied from interface:IProcessUIadd to list of file available for download after process end- Specified by:
downloadin interfaceIProcessUI
-
askForInput
public void askForInput(String message, Callback<String> callback)
- Specified by:
askForInputin interfaceIProcessUI
-
-