public void generateTo(StringBuffer script) { if (TypeCommand.containsUnicode(myText)) { script.append(KeyCodeTypeCommand.PREFIX).append(" "); for (int i = 0; i < myKeyCodes.size(); i++) { Integer each = myKeyCodes.get(i); script.append(each.toString()); script.append(KeyCodeTypeCommand.MODIFIER_DELIMITER); script.append(myModifiers.get(i)); if (i < myKeyCodes.size() - 1) { script.append(KeyCodeTypeCommand.CODE_DELIMITER); } } script.append(" ").append(myText).append("\n"); } else { script.append(myText); script.append("\n"); } }
private static Couple<List<Integer>> parseKeyCodes(String keyCodesText) { return KeyCodeTypeCommand.parseKeyCodes(keyCodesText); }
public static String unparseKeyCodes(Couple<List<Integer>> keyCodes) { return KeyCodeTypeCommand.unparseKeyCodes(keyCodes); }
private static Pair<List<Integer>, List<Integer>> parseKeyCodes(String keyCodesText) { return KeyCodeTypeCommand.parseKeyCodes(keyCodesText); }
public static String unparseKeyCodes(Pair<List<Integer>, List<Integer>> keyCodes) { return KeyCodeTypeCommand.unparseKeyCodes(keyCodes); }