use of org.adempiere.webui.apps.BusyDialog in project adempiere by adempiere.
the class WMerge method onEvent.
// dispose
/**
* Action Listener
* @param e event
*/
public void onEvent(Event e) {
if (e.getTarget().getId().equals(ConfirmPanel.A_CANCEL)) {
dispose();
return;
}
//
String columnName = null;
String from_Info = null;
String to_Info = null;
int from_ID = 0;
int to_ID = 0;
// get first merge pair
for (int i = 0; (i < m_columnName.length && from_ID == 0 && to_ID == 0); i++) {
Object value = m_from[i].getValue();
if (value != null) {
if (value instanceof Integer)
from_ID = ((Integer) value).intValue();
else
continue;
value = m_to[i].getValue();
if (value != null && value instanceof Integer)
to_ID = ((Integer) value).intValue();
else
from_ID = 0;
if (from_ID != 0) {
columnName = m_columnName[i];
from_Info = m_from[i].getDisplay();
to_Info = m_to[i].getDisplay();
}
}
}
if (from_ID == 0 || from_ID == to_ID)
return;
m_msg = Msg.getMsg(Env.getCtx(), "MergeFrom") + " = " + from_Info + "\n" + Msg.getMsg(Env.getCtx(), "MergeTo") + " = " + to_Info;
if (!FDialog.ask(m_WindowNo, form, "MergeQuestion", m_msg))
return;
updateDeleteTable(columnName);
progressWindow = new BusyDialog();
progressWindow.setPage(form.getPage());
progressWindow.doHighlighted();
runnable = new MergeRunnable(columnName, from_ID, to_ID);
Clients.response(new AuEcho(form, "runProcess", null));
}
use of org.adempiere.webui.apps.BusyDialog in project adempiere by adempiere.
the class WGenForm method lockUI.
/**************************************************************************
* Lock User Interface.
* Called from the Worker before processing
* @param pi process info
*/
public void lockUI() {
progressWindow = new BusyDialog();
progressWindow.setPage(this.getPage());
progressWindow.doHighlighted();
}
use of org.adempiere.webui.apps.BusyDialog in project adempiere by adempiere.
the class InfoPanel method showBusyDialog.
// valueChange
protected void showBusyDialog() {
progressWindow = new BusyDialog();
progressWindow.setPage(this.getPage());
progressWindow.doHighlighted();
}
use of org.adempiere.webui.apps.BusyDialog in project adempiere by adempiere.
the class WPOSQuery method lockUI.
// getButtonAction
/**
* Lock User Interface.
* Called from the Worker before processing
* @param pi process info
*/
public void lockUI() {
progressWindow = new BusyDialog();
progressWindow.setPage(this.getPage());
progressWindow.doHighlighted();
}
use of org.adempiere.webui.apps.BusyDialog in project adempiere by adempiere.
the class WBrowser method showBusyDialog.
/**
* Show dialog for busy window
*/
private void showBusyDialog() {
m_waiting = new BusyDialog();
m_waiting.setPage(m_frame.getPage());
m_waiting.doHighlighted();
}
Aggregations