use of org.compiere.apps.AWindowListener in project adempiere by adempiere.
the class Viewer method cmd_customize.
/**
* Call Customize
*/
private void cmd_customize() {
AWindow win = new AWindow(getGraphicsConfiguration());
// forwards Window Events
new AWindowListener(win, this);
// hardcoded
int AD_Window_ID = 240;
int AD_PrintFormat_ID = m_reportEngine.getPrintFormat().get_ID();
boolean loadedOK = win.initWindow(AD_Window_ID, MQuery.getEqualQuery("AD_PrintFormat_ID", AD_PrintFormat_ID));
if (loadedOK) {
AEnv.addToWindowManager(win);
AEnv.showCenterScreen(win);
}
// see windowStateChanged for applying change
}
Aggregations