/src/org/mt4j/components/visibleComponents/widgets/keyboard/ITextInputListener.java

http://mt4j.googlecode.com/ · Java · 67 lines · 8 code · 8 blank · 51 comment · 0 complexity · a4fe3a9aa7fb5fbbaa76adb9ad846805 MD5 · raw file

  1. /***********************************************************************
  2. * mt4j Copyright (c) 2008 - 2009, C.Ruff, Fraunhofer-Gesellschaft All rights reserved.
  3. *
  4. * This program is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation, either version 3 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. *
  17. ***********************************************************************/
  18. package org.mt4j.components.visibleComponents.widgets.keyboard;
  19. /**
  20. * Interface for classes that can be written text to.
  21. *
  22. * @author Christopher Ruff
  23. */
  24. public interface ITextInputListener {
  25. /**
  26. * Clear.
  27. */
  28. public void clear();
  29. /**
  30. * Append text.
  31. *
  32. * @param text the text
  33. */
  34. public void appendText(String text);
  35. /**
  36. * Sets the text.
  37. *
  38. * @param text the new text
  39. */
  40. public void setText(String text);
  41. // /**
  42. // * Returns the text.
  43. // * <br>NOTE: the text may be different from what was set using <code>setText()</code> since
  44. // * the widget may add its own control characters into the text.
  45. // *
  46. // * @return the text
  47. // */
  48. // public String getText();
  49. /**
  50. * Append char by unicode.
  51. *
  52. * @param unicode the unicode
  53. */
  54. public void appendCharByUnicode(String unicode);
  55. /**
  56. * Removes the last character.
  57. */
  58. public void removeLastCharacter();
  59. }