PageRenderTime 23ms CodeModel.GetById 17ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/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 ***********************************************************************/
18package org.mt4j.components.visibleComponents.widgets.keyboard;
19
20/**
21 * Interface for classes that can be written text to.
22 * 
23 * @author Christopher Ruff
24 */
25public interface ITextInputListener {
26	
27	/**
28	 * Clear.
29	 */
30	public void clear();
31	
32	/**
33	 * Append text.
34	 * 
35	 * @param text the text
36	 */
37	public void appendText(String text);
38	
39	/**
40	 * Sets the text.
41	 * 
42	 * @param text the new text
43	 */
44	public void setText(String text);
45	
46//	/**
47//	 * Returns the text.
48//	 * <br>NOTE: the text may be different from what was set using <code>setText()</code> since
49//	 * the widget may add its own control characters into the text.
50//	 * 
51//	 * @return the text
52//	 */
53//	public String getText();
54		
55	/**
56	 * Append char by unicode.
57	 * 
58	 * @param unicode the unicode
59	 */
60	public void appendCharByUnicode(String unicode);
61	
62	/**
63	 * Removes the last character.
64	 */
65	public void removeLastCharacter();
66
67}