From: Jorg J. <jj...@us...> - 2002-01-19 05:27:58
|
Update of /cvsroot/compiere/client/Src/org/compiere/apps/search In directory usw-pr-cvs1:/tmp/cvs-serv5071/Src/org/compiere/apps/search Modified Files: Info.java Log Message: . Index: Info.java =================================================================== RCS file: /cvsroot/compiere/client/Src/org/compiere/apps/search/Info.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** Info.java 2001/12/17 05:38:55 1.8 --- Info.java 2002/01/19 05:27:55 1.9 *************** *** 53,56 **** --- 53,57 ---- * @param frame parent frame * @param modal new window is modal + * @param WindowNo * @param tableName table name of the search * @param keyColumn key column of the search *************** *** 90,98 **** --- 91,181 ---- } // create + /** + * Show BPartner Info (non modal) + * @param frame Parent Frame + * @param WindowNo + */ + public static void showBPartner (Frame frame, int WindowNo) + { + Info info = new InfoBPartner (frame, false, WindowNo, "", + !Env.getContext(Env.getCtx(),"IsSOTrx").equals("N"), false, ""); + AEnv.showCenterWindow(frame, info); + } // showBPartner + + /** + * Show Product Info (non modal) + * @param frame Parent Frame + * @param WindowNo + */ + public static void showProduct (Frame frame, int WindowNo) + { + Info info = new InfoProduct (frame, false, WindowNo, + Env.getContextAsInt(Env.getCtx(), WindowNo, "M_Warehouse_ID"), + 0, "", false, ""); + AEnv.showCenterWindow(frame, info); + } // showProduct + + /** + * Show Order Info (non modal) + * @param frame Parent Frame + * @param WindowNo + */ + public static void showOrder (Frame frame, int WindowNo) + { + Info info = new InfoOrder (frame, false, WindowNo, + false, ""); + AEnv.showCenterWindow(frame, info); + } // showOrder + + /** + * Show Invoice Info (non modal) + * @param frame Parent Frame + * @param WindowNo + */ + public static void showInvoice (Frame frame, int WindowNo) + { + Info info = new InfoInvoice (frame, false, WindowNo, + false, ""); + AEnv.showCenterWindow(frame, info); + } // showInvoice + + /** + * Show Shipment Info (non modal) + * @param frame Parent Frame + * @param WindowNo + */ + public static void showInOut (Frame frame, int WindowNo) + { + Info info = new InfoInOut (frame, false, WindowNo, + false, ""); + AEnv.showCenterWindow(frame, info); + } // showInOut + + /** + * Show Payment Info (non modal) + * @param frame Parent Frame + * @param WindowNo + */ + public static void showPayment (Frame frame, int WindowNo) + { + Info info = new InfoPayment (frame, false, WindowNo, + false, ""); + AEnv.showCenterWindow(frame, info); + } // showPayment + /** Window Width */ static final int INFO_WIDTH = 800; + /*************************************************************************/ + /** * Detail Constructor + * @param frame + * @param modal + * @param WindowNo + * @param tableName + * @param keyColumn + * @param multiSelection + * @param whereClause */ protected Info(Frame frame, boolean modal, int WindowNo, *************** *** 166,169 **** --- 249,253 ---- /** * Static Init + * @throws Exception */ protected void jbInit() throws Exception *************** *** 191,194 **** --- 275,279 ---- /** * Loaded correctly + * @return true if loaded OK */ public boolean loadedOK() *************** *** 199,204 **** /** * Set Status Line */ ! public void setStatusLine(String text, boolean error) { statusBar.setStatusLine(text, error); --- 284,291 ---- /** * Set Status Line + * @param text + * @param error */ ! public void setStatusLine (String text, boolean error) { statusBar.setStatusLine(text, error); *************** *** 208,213 **** /** * Set Status DB */ ! public void setStatusDB(String text) { statusBar.setStatusDB(text); --- 295,301 ---- /** * Set Status DB + * @param text */ ! public void setStatusDB (String text) { statusBar.setStatusDB(text); *************** *** 220,223 **** --- 308,315 ---- * Prepare Table, Construct SQL (m_m_sqlMain, m_sqlAdd) * and size Window + * @param layout + * @param from + * @param staticWhere + * @param orderBy */ protected void prepareTable(Info_Column[] layout, String from, String staticWhere, String orderBy) *************** *** 316,319 **** --- 408,412 ---- /** * Get the key of currently selected row + * @return selected key */ protected Integer getSelectedRowKey() *************** *** 333,336 **** --- 426,430 ---- /** * Get selected Keys + * @return selected keys (Integers) */ public Object[] getSelectedKeys() *************** *** 343,346 **** --- 437,441 ---- /** * Get (first) selected Key + * @return selected key */ public Object getSelectedKey() *************** *** 355,358 **** --- 450,454 ---- * - if pressed Cancel = true * - if pressed OK or window closed = false + * @return true if cancelled */ public boolean isCancelled() *************** *** 363,366 **** --- 459,463 ---- /** * Get where clause for (first) selected key + * @return WHERE Clause */ public String getSelectedSQL() *************** *** 397,400 **** --- 494,498 ---- /** * (Button) Action Listener & Popup Menu + * @param e */ public void actionPerformed(ActionEvent e) *************** *** 447,450 **** --- 545,550 ---- /** * Zoom to target + * @param AD_Window_ID + * @param zoomQuery */ void zoom (int AD_Window_ID, String zoomQuery) *************** *** 483,486 **** --- 583,587 ---- /** * Get Table name Synonym + * @return table name */ String getTableName() *************** *** 491,494 **** --- 592,596 ---- /** * Get Key Column Name + * @return column name */ String getKeyColumn() *************** *** 502,505 **** --- 604,608 ---- * Get dynamic WHERE part of SQL * To be overwritten by concrete classes + * @return WHERE clause */ abstract String getSQLWhere(); *************** *** 507,510 **** --- 610,615 ---- * Set Parameters for Query * To be overwritten by concrete classes + * @param pstmt + * @throws SQLException */ abstract void setParameters(PreparedStatement pstmt) throws SQLException; *************** *** 518,521 **** --- 623,627 ---- * Has History (false) * To be overwritten by concrete classes + * @return true if it has history (default false) */ boolean hasHistory() {return false;} *************** *** 528,531 **** --- 634,638 ---- * Has Customize (false) * To be overwritten by concrete classes + * @return true if it has customize (default false) */ boolean hasCustomize() {return false;} *************** *** 538,541 **** --- 645,649 ---- * Has Zoom (false) * To be overwritten by concrete classes + * @return true if it has zoom (default false) */ boolean hasZoom() {return false;} *************** *** 550,553 **** --- 658,662 ---- /** * Mouse Clicked + * @param e */ public void mouseClicked(MouseEvent e) |