/tags/20100516/src/com/menny/android/anysoftkeyboard/TranslatedKeyEvent.java

http://softkeyboard.googlecode.com/ · Java · 78 lines · 0 code · 0 blank · 78 comment · 0 complexity · a7347f38ce288c2625e7727e9d3e93c2 MD5 · raw file

  1. //package com.menny.android.anysoftkeyboard;
  2. //
  3. //import android.util.Log;
  4. //import android.view.KeyEvent;
  5. //import android.view.KeyCharacterMap.KeyData;
  6. //
  7. //public class TranslatedKeyEvent extends KeyEvent {
  8. // private final int mTranslatedUnitcodeKey;
  9. //
  10. // public TranslatedKeyEvent(int translatedUnicode, KeyEvent originalEvent)
  11. // {
  12. // super(originalEvent);
  13. // mTranslatedUnitcodeKey = translatedUnicode;
  14. // }
  15. //
  16. // @Override
  17. // public int getUnicodeChar() {
  18. // if (AnySoftKeyboard.getDEBUG()) Log.d("AnySoftKeyboard:TranslatedKeyEvent", "getUnicodeChar: "+mTranslatedUnitcodeKey);
  19. // return mTranslatedUnitcodeKey;
  20. // }
  21. //
  22. // @Override
  23. // public char getDisplayLabel() {
  24. // if (AnySoftKeyboard.getDEBUG()) Log.d("AnySoftKeyboard:TranslatedKeyEvent", "getDisplayLabel: "+mTranslatedUnitcodeKey);
  25. // return (char)mTranslatedUnitcodeKey;
  26. // }
  27. //
  28. // @Override
  29. // public char getNumber() {
  30. // if (AnySoftKeyboard.getDEBUG()) Log.d("AnySoftKeyboard:TranslatedKeyEvent", "getNumber: "+mTranslatedUnitcodeKey);
  31. // return (char)mTranslatedUnitcodeKey;
  32. // }
  33. //
  34. // @Override
  35. // public int getUnicodeChar(int meta) {
  36. // if (AnySoftKeyboard.getDEBUG()) Log.d("AnySoftKeyboard:TranslatedKeyEvent", "getUnicodeChar(int meta): "+mTranslatedUnitcodeKey);
  37. // return (char)mTranslatedUnitcodeKey;
  38. // }
  39. //
  40. // @Override
  41. // public int describeContents() {
  42. // if (AnySoftKeyboard.getDEBUG()) Log.d("AnySoftKeyboard:TranslatedKeyEvent", "describeContents");
  43. // // TODO Auto-generated method stub
  44. // return super.describeContents();
  45. // }
  46. //
  47. // @Override
  48. // public boolean getKeyData(KeyData results) {
  49. // if (AnySoftKeyboard.getDEBUG()) Log.d("AnySoftKeyboard:TranslatedKeyEvent", "getKeyData");
  50. // return super.getKeyData(results);
  51. // }
  52. //
  53. // @Override
  54. // public char getMatch(char[] chars) {
  55. // if (AnySoftKeyboard.getDEBUG()) Log.d("AnySoftKeyboard:TranslatedKeyEvent", "getMatch(char[] chars)");
  56. // return super.getMatch(chars);
  57. // }
  58. //
  59. // @Override
  60. // public char getMatch(char[] chars, int modifiers) {
  61. // if (AnySoftKeyboard.getDEBUG()) Log.d("AnySoftKeyboard:TranslatedKeyEvent", "getMatch(char[] chars, int modifiers)");
  62. // // TODO Auto-generated method stub
  63. // return super.getMatch(chars, modifiers);
  64. // }
  65. //
  66. // @Override
  67. // public boolean isPrintingKey() {
  68. // if (AnySoftKeyboard.getDEBUG()) Log.d("AnySoftKeyboard:TranslatedKeyEvent", "isPrintingKey");
  69. // return super.isPrintingKey();
  70. // }
  71. //
  72. // @Override
  73. // protected Object clone() throws CloneNotSupportedException {
  74. // if (AnySoftKeyboard.getDEBUG()) Log.d("AnySoftKeyboard:TranslatedKeyEvent", "clone");
  75. // // TODO Auto-generated method stub
  76. // return super.clone();
  77. // }
  78. //}