]> gitweb.fperrin.net Git - Dictionary.git/blob - jars/icu4j-4_2_1-src/src/com/ibm/richtext/textpanel/TextPanelListener.java
icu4jsrc
[Dictionary.git] / jars / icu4j-4_2_1-src / src / com / ibm / richtext / textpanel / TextPanelListener.java
1 /*\r
2  * (C) Copyright IBM Corp. 1998-2004.  All Rights Reserved.\r
3  *\r
4  * The program is provided "as is" without any warranty express or\r
5  * implied, including the warranty of non-infringement and the implied\r
6  * warranties of merchantibility and fitness for a particular purpose.\r
7  * IBM will not be liable for any damages suffered by you as a result\r
8  * of using the Program. In no event will IBM be liable for any\r
9  * special, indirect or consequential damages or lost profits even if\r
10  * IBM has been advised of the possibility of their occurrence. IBM\r
11  * will not be liable for any third party claims against you.\r
12  */\r
13 package com.ibm.richtext.textpanel;\r
14 \r
15 /**\r
16  * This interface is implemented by classes which\r
17  * receive change notifications from an MTextPanel.\r
18  * @see MTextPanel\r
19  * @see TextPanelEvent\r
20  */\r
21 public interface TextPanelListener {\r
22 \r
23     static final String COPYRIGHT =\r
24                 "(C) Copyright IBM Corp. 1998-1999 - All Rights Reserved";\r
25     /**\r
26      * Notify listener of an MTextPanel change.\r
27      * @param event a TextPanelEvent indicating what happened\r
28      */\r
29     public void textEventOccurred(TextPanelEvent event);\r
30     \r
31     /**\r
32      * Return true if listener needs to be notified of \r
33      * the given event type.  This allows a text panel to avoid\r
34      * sending events to uninterested parties.\r
35      * @param type an event ID from TextPanelEvent\r
36      * @return true if this listener needs to be notified of\r
37      * events of the given type\r
38      */\r
39     public boolean respondsToEventType(int type);\r
40 }\r