/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
- /***********************************************************************
- * mt4j Copyright (c) 2008 - 2009, C.Ruff, Fraunhofer-Gesellschaft All rights reserved.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- ***********************************************************************/
- package org.mt4j.components.visibleComponents.widgets.keyboard;
-
- /**
- * Interface for classes that can be written text to.
- *
- * @author Christopher Ruff
- */
- public interface ITextInputListener {
-
- /**
- * Clear.
- */
- public void clear();
-
- /**
- * Append text.
- *
- * @param text the text
- */
- public void appendText(String text);
-
- /**
- * Sets the text.
- *
- * @param text the new text
- */
- public void setText(String text);
-
- // /**
- // * Returns the text.
- // * <br>NOTE: the text may be different from what was set using <code>setText()</code> since
- // * the widget may add its own control characters into the text.
- // *
- // * @return the text
- // */
- // public String getText();
-
- /**
- * Append char by unicode.
- *
- * @param unicode the unicode
- */
- public void appendCharByUnicode(String unicode);
-
- /**
- * Removes the last character.
- */
- public void removeLastCharacter();
-
- }