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 TypeMethodDescriptionvoidPrompt for user input.voidaskForInput(String message, Callback<String> callback) ask for input from userdefault voidaskForInput(String message, MLookup lookup, int displayType, Callback<Object> callback) Prompt user for input with a configurable DisplayType (String, Number, TableDir or Search)voidaskForSecretInput(String message, Callback<String> callback) Prompt for secret input (for e.g password) from user.voidadd to list of file available for download after process endbooleanIs the UI lockedvoidlockUI(ProcessInfo pi) Lock User Interface.default voidshowInfoWindow(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 voidshowReports(List<File> pdfList) show reports from a given file list matheus.marcelino - devCoffee #5561voidstatusUpdate(String message) Provide status feedback to uservoidunlockUI(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-
-