1
2
3
4
5
6
7
8
9
10
11
12 package sk.uniba.euromath.editor;
13
14
15
16 /***
17 * Listener that implements this interface handles focus changes in EditorSite -
18 * in IEditors.
19 * <p>
20 * After creating an instance of a class that implements this interface it can
21 * be added to EditorSite using the <code>addFocusListener</code> method and
22 * removed using the <code>removeFocusListener</code> method. When a IEditor
23 * gains or loses focus, the appropriate method will be invoked.
24 * </p>
25 *
26 * @author Tomáš Studva 22.10.2005
27 */
28 public interface IFocusListener {
29
30 /***
31 * Sent when IEditor gets focus.
32 *
33 * @param editor
34 * which has acquired focus
35 */
36 public void focusGained(IEditor editor);
37
38 /***
39 * Sent when IEditor loses focus.
40 *
41 * @param editor
42 * which has lost focus
43 */
44 public void focusLost(IEditor editor);
45 }