Package org.adempiere.util
Interface IProcessUI
- All Known Implementing Classes:
AbstractProcessDialog
,ProcessDialog
,ProcessModalDialog
public interface IProcessUI
Interface to provide server process access to UI.
iDempiere process usually extends
Process must perform null check when using the SvrProcess.processUI field since it will be null when a process is not launch from the client end (for e.g from scheduler).
iDempiere process usually extends
SvrProcess
and uses the protected processUI reference.Process must perform null check when using the SvrProcess.processUI field since it will be null when a process is not launch from the client end (for e.g from scheduler).
- Author:
- hengsin
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Prompt for user input.void
askForInput
(String message, Callback<String> callback) ask for input from userdefault void
askForInput
(String message, MLookup lookup, int displayType, Callback<Object> callback) Prompt user for input with a configurable DisplayType (String, Number, TableDir or Search)void
askForSecretInput
(String message, Callback<String> callback) Prompt for secret input (for e.g password) from user.void
add to list of file available for download after process endboolean
Is the UI lockedvoid
lockUI
(ProcessInfo pi) Lock User Interface.default void
showInfoWindow
(int WindowNo, String tableName, String keyColumn, String queryValue, boolean multipleSelection, String whereClause, Integer AD_InfoWindow_ID, boolean lookup) show an info window from inside a process with user defined parameters gustavo.francisco - devCoffee #7094default void
showReports
(List<File> pdfList) show reports from a given file list matheus.marcelino - devCoffee #5561void
statusUpdate
(String message) Provide status feedback to uservoid
unlockUI
(ProcessInfo pi) Unlock User Interface.
-
Method Details
-
lockUI
Lock User Interface. Called from the Worker before processing- Parameters:
pi
- process info
-
unlockUI
Unlock User Interface. Called from the Worker when processing is done- Parameters:
pi
- process info
-
isUILocked
boolean isUILocked()Is the UI locked- Returns:
- true, if UI is locked
-
statusUpdate
Provide status feedback to user- Parameters:
message
-
-
ask
Prompt for user input. Example Usage in process:final StringBuffer answer = new StringBuffer(); aProcessMonitor.ask(adMessage, new Callback
() { - Parameters:
message
-callback
-
-
askForInput
ask for input from user- Parameters:
message
-callback
-
-
askForSecretInput
Prompt for secret input (for e.g password) from user.- Parameters:
message
-callback
-
-
askForInput
default void askForInput(String message, MLookup lookup, int displayType, Callback<Object> callback) Prompt user for input with a configurable DisplayType (String, Number, TableDir or Search)Usage is the same from ask and askForInput methods with some additional parameters muriloht - devCoffee #3390
- Parameters:
message
-lookup
-displayType
-callback
-
-
download
add to list of file available for download after process end- Parameters:
file
-
-
showReports
show reports from a given file list matheus.marcelino - devCoffee #5561- Parameters:
pdfList
-
-
showInfoWindow
default void showInfoWindow(int WindowNo, String tableName, String keyColumn, String queryValue, boolean multipleSelection, String whereClause, Integer AD_InfoWindow_ID, boolean lookup) show an info window from inside a process with user defined parameters gustavo.francisco - devCoffee #7094- Parameters:
WindowNo
-tableName
-keyColumn
-queryValue
-multipleSelection
-whereClause
-AD_InfoWindow_ID
-lookup
-
-