KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > swingwtx > swing > FocusManager


1 /*
2    SwingWT
3    Copyright(c)2003-2004, R. Rawson-Tetley
4
5    For more information on distributing and using this program, please
6    see the accompanying "COPYING" file.
7
8    Contact me by electronic mail: bobintetley@users.sourceforge.net
9
10    $Log: FocusManager.java,v $
11    Revision 1.2 2003/12/14 09:13:38 bobintetley
12    Added CVS log to source headers
13
14 */

15
16 package swingwtx.swing;
17
18 public class FocusManager extends swingwt.awt.KeyboardFocusManager {
19     
20     private static FocusManager currentManager = null;
21     
22     public static FocusManager getCurrentManager() {
23         return currentManager;
24     }
25     
26     public static void setCurrentManager(FocusManager manager) {
27         currentManager = manager;
28     }
29     
30     /** Meant to be overriden in subclasses. Unlike Swing, we default
31      * to a null manager, that handles focusing in the order they
32      * were added to the screen.
33      */

34     public void focusNextComponent(swingwt.awt.Component component) {
35     }
36     
37     /** Meant to be overriden in subclasses. Unlike Swing, we default
38      * to a null manager, that handles focusing in the order they
39      * were added to the screen.
40      */

41     public void focusPreviousComponent(swingwt.awt.Component component) {
42     }
43     
44 }
45
Popular Tags