Author: jleroux
Date: Fri Jun 27 13:53:43 2008 New Revision: 672390 URL: http://svn.apache.org/viewvc?rev=672390&view=rev Log: Introduce a ShowKeyboardInSaveSale parameters in a new parameters.properties file to allow showing the virtual keyboard or not. Used for the moment in Save Sale screen only Added: ofbiz/trunk/specialpurpose/pos/config/parameters.properties (with props) Modified: ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/SaveSale.java Added: ofbiz/trunk/specialpurpose/pos/config/parameters.properties URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/pos/config/parameters.properties?rev=672390&view=auto ============================================================================== --- ofbiz/trunk/specialpurpose/pos/config/parameters.properties (added) +++ ofbiz/trunk/specialpurpose/pos/config/parameters.properties Fri Jun 27 13:53:43 2008 @@ -0,0 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +############################################################################### +# +### Miscellaneous parameters +ShowKeyboardInSaveSale=Y \ No newline at end of file Propchange: ofbiz/trunk/specialpurpose/pos/config/parameters.properties ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/specialpurpose/pos/config/parameters.properties ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: ofbiz/trunk/specialpurpose/pos/config/parameters.properties ------------------------------------------------------------------------------ svn:mime-type = text/plain 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=672390&r1=672389&r2=672390&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 Fri Jun 27 13:53:43 2008 @@ -35,6 +35,7 @@ // importing DeviceLoader for pop.drawer import org.ofbiz.pos.device.DeviceLoader; +@SuppressWarnings("serial") public class SaveSale extends XPage { /** @@ -51,6 +52,7 @@ protected XButton m_saveAndPrint = null; protected static PosTransaction m_trans = null; public static SimpleDateFormat sdf = new SimpleDateFormat(UtilProperties.getMessage("pos","DateTimeFormat",Locale.getDefault())); + private static boolean ShowKeyboardInSaveSale = UtilProperties.propertyValueEqualsIgnoreCase("parameters", "ShowKeyboardInSaveSale", "Y"); //TODO : make getter and setter for members (ie m_*) if needed (extern calls). For that in Eclipse use Source/Generate Getters and setters @@ -125,7 +127,7 @@ } public synchronized void editSaleName(){ - if (wasMouseClicked()) { + if (wasMouseClicked() && ShowKeyboardInSaveSale) { try { Keyboard keyboard = new Keyboard(m_pos); keyboard.setText(m_saleName.getText()); |
Free forum by Nabble | Edit this page |