public ProcessDialog show() { buildPrepare(); final ProcessFrame frame = new ProcessFrame(this); if (!frame.isDisposed()) { AEnv.addToWindowManager(frame); } return frame; }
/** Action - Zoom */ @Override public void actionZoom() { int AD_Window_ID = MTable.get(Env.getCtx(), MLocator.Table_ID).getAD_Window_ID(); if (AD_Window_ID <= 0) AD_Window_ID = 139; // hardcoded window Warehouse & Locators log.info(""); // setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); AWindow frame = new AWindow(); MQuery zoomQuery = new MQuery(); zoomQuery.addRestriction(MLocator.COLUMNNAME_M_Locator_ID, Operator.EQUAL, getValue()); zoomQuery.setRecordCount(1); // guess if (!frame.initWindow(AD_Window_ID, zoomQuery)) return; AEnv.addToWindowManager(frame); AEnv.showCenterScreen(frame); frame = null; setCursor(Cursor.getDefaultCursor()); } // actionZoom
/** Zoom M_Lot */ private void cmd_zoom() { int M_Lot_ID = 0; KeyNamePair pp = fieldLot.getSelectedItem(); if (pp != null) M_Lot_ID = pp.getKey(); MQuery zoomQuery = new MQuery("M_Lot"); zoomQuery.addRestriction("M_Lot_ID", MQuery.EQUAL, M_Lot_ID); log.info(zoomQuery.toString()); // setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); // int AD_Window_ID = 257; // Lot AWindow frame = new AWindow(); if (frame.initWindow(AD_Window_ID, zoomQuery)) { this.setVisible(false); this.setModal(false); // otherwise blocked this.setVisible(true); AEnv.addToWindowManager(frame); AEnv.showScreen(frame, SwingConstants.EAST); } // async window - not able to get feedback frame = null; // setCursor(Cursor.getDefaultCursor()); } // cmd_zoom