01: /*******************************************************************************
02: * Licensed to the Apache Software Foundation (ASF) under one
03: * or more contributor license agreements. See the NOTICE file
04: * distributed with this work for additional information
05: * regarding copyright ownership. The ASF licenses this file
06: * to you under the Apache License, Version 2.0 (the
07: * "License"); you may not use this file except in compliance
08: * with the License. You may obtain a copy of the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing,
13: * software distributed under the License is distributed on an
14: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15: * KIND, either express or implied. See the License for the
16: * specific language governing permissions and limitations
17: * under the License.
18: *******************************************************************************/package org.ofbiz.pos.event;
19:
20: import org.ofbiz.pos.screen.PosScreen;
21:
22: public class NumericEvents {
23:
24: public static final String module = NumericEvents.class.getName();
25:
26: // standard number events
27: public static void triggerOne(PosScreen pos) {
28: pos.getInput().appendString("1");
29: }
30:
31: public static void triggerTwo(PosScreen pos) {
32: pos.getInput().appendString("2");
33: }
34:
35: public static void triggerThree(PosScreen pos) {
36: pos.getInput().appendString("3");
37: }
38:
39: public static void triggerFour(PosScreen pos) {
40: pos.getInput().appendString("4");
41: }
42:
43: public static void triggerFive(PosScreen pos) {
44: pos.getInput().appendString("5");
45: }
46:
47: public static void triggerSix(PosScreen pos) {
48: pos.getInput().appendString("6");
49: }
50:
51: public static void triggerSeven(PosScreen pos) {
52: pos.getInput().appendString("7");
53: }
54:
55: public static void triggerEight(PosScreen pos) {
56: pos.getInput().appendString("8");
57: }
58:
59: public static void triggerNine(PosScreen pos) {
60: pos.getInput().appendString("9");
61: }
62:
63: public static void triggerZero(PosScreen pos) {
64: pos.getInput().appendString("0");
65: }
66:
67: public static void triggerDZero(PosScreen pos) {
68: pos.getInput().appendString("00");
69: }
70:
71: public static void triggerPercent(PosScreen pos) {
72: pos.getInput().appendString("%");
73: }
74:
75: public static void triggerMinus(PosScreen pos) {
76: pos.getInput().appendString("-");
77: }
78: }
|