Author: jleroux
Date: Sun Oct 18 20:32:05 2009 New Revision: 826517 URL: http://svn.apache.org/viewvc?rev=826517&view=rev Log: Following conventions on static variable names Modified: ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/ClientProfile.java ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/PaidInOut.java ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/SaveSale.java Modified: ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/ClientProfile.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/ClientProfile.java?rev=826517&r1=826516&r2=826517&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/ClientProfile.java (original) +++ ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/ClientProfile.java Sun Oct 18 20:32:05 2009 @@ -75,8 +75,8 @@ protected static PosTransaction m_trans = null; protected String m_type = null; protected boolean cancelled = false; - private static boolean showKeyboardInSaveSale = UtilProperties.propertyValueEqualsIgnoreCase("parameters", "ShowKeyboardInSaveSale", "Y"); - private static boolean swipWithCard = UtilProperties.propertyValueEqualsIgnoreCase("parameters", "SwipWithCard", "N"); + private static boolean SHOW_KEYBOARD_IN_SAVE_SALE= UtilProperties.propertyValueEqualsIgnoreCase("parameters", "SHOW_KEYBOARD_IN_SAVE_SALE", "Y"); + private static boolean SWIP_WITH_CARD = UtilProperties.propertyValueEqualsIgnoreCase("parameters", "SwipWithCard", "N"); private static Locale locale = Locale.getDefault(); private String m_partyId = null; @@ -159,7 +159,7 @@ } public synchronized void editName() { - if (wasMouseClicked() && showKeyboardInSaveSale) { + if (wasMouseClicked() && SHOW_KEYBOARD_IN_SAVE_SALE) { try { Keyboard keyboard = new Keyboard(m_pos); keyboard.setText(m_nameEdit.getText()); @@ -173,7 +173,7 @@ } public synchronized void editEmail() { - if (wasMouseClicked() && showKeyboardInSaveSale) { + if (wasMouseClicked() && SHOW_KEYBOARD_IN_SAVE_SALE) { try { Keyboard keyboard = new Keyboard(m_pos); keyboard.setText(m_emailEdit.getText()); @@ -187,7 +187,7 @@ } public synchronized void editPhone() { - if (wasMouseClicked() && showKeyboardInSaveSale) { + if (wasMouseClicked() && SHOW_KEYBOARD_IN_SAVE_SALE) { try { NumericKeypad numericKeypad = new NumericKeypad(m_pos); numericKeypad.setMinus(true); @@ -202,7 +202,7 @@ } public synchronized void editCard() { - if (wasMouseClicked() && showKeyboardInSaveSale && !swipWithCard) { + if (wasMouseClicked() && SHOW_KEYBOARD_IN_SAVE_SALE && !SWIP_WITH_CARD) { try { NumericKeypad numericKeypad = new NumericKeypad(m_pos); numericKeypad.setMinus(true); Modified: ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/PaidInOut.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/PaidInOut.java?rev=826517&r1=826516&r2=826517&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/PaidInOut.java (original) +++ ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/PaidInOut.java Sun Oct 18 20:32:05 2009 @@ -65,7 +65,7 @@ protected static PosTransaction m_trans = null; protected String m_type = null; protected boolean cancelled = false; - private static boolean showKeyboardInSaveSale = UtilProperties.propertyValueEqualsIgnoreCase("parameters", "ShowKeyboardInSaveSale", "Y"); + private static boolean SHOW_KEYBOARD_IN_SAVE_SALE = UtilProperties.propertyValueEqualsIgnoreCase("parameters", "SHOW_KEYBOARD_IN_SAVE_SALE", "Y"); //TODO : make getter and setter for members (ie m_*) if needed (extern calls). For that in Eclipse use Source/Generate Getters and setters @@ -146,7 +146,7 @@ } public synchronized void editAmount() { - if (wasMouseClicked() && showKeyboardInSaveSale) { + if (wasMouseClicked() && SHOW_KEYBOARD_IN_SAVE_SALE) { try { NumericKeypad numericKeypad = new NumericKeypad(m_pos); numericKeypad.setMinus(true); Modified: ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/SaveSale.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/SaveSale.java?rev=826517&r1=826516&r2=826517&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/SaveSale.java (original) +++ ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/SaveSale.java Sun Oct 18 20:32:05 2009 @@ -53,7 +53,7 @@ //protected XButton m_saveAndPrint = null; //FIXME : button does not exist yet protected static PosTransaction m_trans = null; public static SimpleDateFormat sdf = new SimpleDateFormat(UtilProperties.getMessage(PosTransaction.resource,"PosDateTimeFormat",Locale.getDefault())); - private static boolean showKeyboardInSaveSale = UtilProperties.propertyValueEqualsIgnoreCase("parameters", "ShowKeyboardInSaveSale", "Y"); + private static boolean SHOW_KEYBOARD_IN_SAVE_SALE = UtilProperties.propertyValueEqualsIgnoreCase("parameters", "SHOW_KEYBOARD_IN_SAVE_SALE", "Y"); //TODO : make getter and setter for members (ie m_*) if needed (extern calls). For that in Eclipse use Source/Generate Getters and setters @@ -128,7 +128,7 @@ } public synchronized void editSaleName() { - if (wasMouseClicked() && showKeyboardInSaveSale) { + if (wasMouseClicked() && SHOW_KEYBOARD_IN_SAVE_SALE) { try { Keyboard keyboard = new Keyboard(m_pos); keyboard.setText(m_saleName.getText()); |
Free forum by Nabble | Edit this page |