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 void
actionPerformed(ActionEvent e)
ActionListenervoid
ask(String message, Callback<Boolean> callback)
Prompt for user input.void
askForInput(String message, Callback<String> callback)
void
calculateSelection()
Calculate selected rowsvoid
dispose()
Disposevoid
download(File file)
add to list of file available for download after process endvoid
executeASync(ProcessInfo pi)
Method to be executed async.void
init(int WindowNo, FormFrame frame)
Initialize Panelboolean
isUILocked()
Is the UI locked (Internal method)void
lockUI(ProcessInfo pi)
Lock User Interface Called from the Worker before processingvoid
statusUpdate(String message)
Provide status feedback to uservoid
tableChanged(TableModelEvent e)
Table Model Listenervoid
unlockUI(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:
actionPerformed
in interfaceActionListener
- Parameters:
e
- event
-
tableChanged
public void tableChanged(TableModelEvent e)
Table Model Listener- Specified by:
tableChanged
in 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:
lockUI
in interfaceIProcessUI
- Parameters:
pi
- process info
-
unlockUI
public void unlockUI(ProcessInfo pi)
Unlock User Interface. Called from the Worker when processing is done- Specified by:
unlockUI
in interfaceIProcessUI
- Parameters:
pi
- process info
-
isUILocked
public boolean isUILocked()
Is the UI locked (Internal method)- Specified by:
isUILocked
in 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:IProcessUI
Provide status feedback to user- Specified by:
statusUpdate
in interfaceIProcessUI
-
ask
public void ask(String message, Callback<Boolean> callback)
Description copied from interface:IProcessUI
Prompt for user input. Example Usage in process:final StringBuffer answer = new StringBuffer(); aProcessMonitor.ask(adMessage, new Callback
() { - Specified by:
ask
in interfaceIProcessUI
-
download
public void download(File file)
Description copied from interface:IProcessUI
add to list of file available for download after process end- Specified by:
download
in interfaceIProcessUI
-
askForInput
public void askForInput(String message, Callback<String> callback)
- Specified by:
askForInput
in interfaceIProcessUI
-
-