1 25 package org.ofbiz.pos.event; 26 27 import org.ofbiz.pos.screen.PosScreen; 28 29 35 public class NumericEvents { 36 37 public static final String module = NumericEvents.class.getName(); 38 39 public static void triggerOne(PosScreen pos) { 41 pos.getInput().appendString("1"); 42 } 43 44 public static void triggerTwo(PosScreen pos) { 45 pos.getInput().appendString("2"); 46 } 47 48 public static void triggerThree(PosScreen pos) { 49 pos.getInput().appendString("3"); 50 } 51 52 public static void triggerFour(PosScreen pos) { 53 pos.getInput().appendString("4"); 54 } 55 56 public static void triggerFive(PosScreen pos) { 57 pos.getInput().appendString("5"); 58 } 59 60 public static void triggerSix(PosScreen pos) { 61 pos.getInput().appendString("6"); 62 } 63 64 public static void triggerSeven(PosScreen pos) { 65 pos.getInput().appendString("7"); 66 } 67 68 public static void triggerEight(PosScreen pos) { 69 pos.getInput().appendString("8"); 70 } 71 72 public static void triggerNine(PosScreen pos) { 73 pos.getInput().appendString("9"); 74 } 75 76 public static void triggerZero(PosScreen pos) { 77 pos.getInput().appendString("0"); 78 } 79 80 public static void triggerDZero(PosScreen pos) { 81 pos.getInput().appendString("00"); 82 } 83 84 public static void triggerPercent(PosScreen pos) { 85 pos.getInput().appendString("%"); 86 } 87 88 public static void triggerMinus(PosScreen pos) { 89 pos.getInput().appendString("-"); 90 } 91 } 92 93 94 | Popular Tags |