From: Anneli <an...@us...> - 2005-03-07 11:14:38
|
Update of /cvsroot/redpos/RedPOS/src/org/redpos/client/payment/contract In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29708/src/org/redpos/client/payment/contract Modified Files: PaymentInfo.java PaymentUtility.java Log Message: Added functionality for short commands when selecting payment Index: PaymentInfo.java =================================================================== RCS file: /cvsroot/redpos/RedPOS/src/org/redpos/client/payment/contract/PaymentInfo.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** PaymentInfo.java 23 Nov 2004 16:03:07 -0000 1.1 --- PaymentInfo.java 7 Mar 2005 11:13:57 -0000 1.2 *************** *** 52,55 **** --- 52,63 ---- public String code; + /** The service UI accelerator id **/ + public int accelerator; + + /** The service UI statemask id **/ + public int statemask; + + public String id; + /** * *************** *** 58,62 **** --- 66,82 ---- { } + + /** + * + */ + public PaymentInfo(String n, ObjectName sn, int acc, int state) + { + serviceName = sn; + accelerator = acc; + id = serviceName.getCanonicalName(); + statemask = state; + } + public String toString() { Index: PaymentUtility.java =================================================================== RCS file: /cvsroot/redpos/RedPOS/src/org/redpos/client/payment/contract/PaymentUtility.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** PaymentUtility.java 23 Nov 2004 16:03:07 -0000 1.1 --- PaymentUtility.java 7 Mar 2005 11:13:57 -0000 1.2 *************** *** 151,154 **** return response.booleanValue(); } ! } \ No newline at end of file --- 151,176 ---- return response.booleanValue(); } ! ! /** ! * Returns accelerator key id of service ! * ! * @return accelerator key id ! */ ! public int getAccelerator() throws JMException ! { ! Integer acceleratorInteger = (Integer)this.getAttribute("Accelerator"); ! return acceleratorInteger.intValue(); ! } ! ! /** ! * Returns statemask key id of service ! * ! * @return statemask key id ! */ ! public int getStatemask() throws JMException ! { ! Integer statemaskInteger = (Integer)this.getAttribute("Statemask"); ! return statemaskInteger.intValue(); ! } ! } \ No newline at end of file |