1 |
758 |
jeremybenn |
|
2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
3 |
|
|
|
4 |
|
|
#ifndef __java_awt_KeyboardFocusManager__
|
5 |
|
|
#define __java_awt_KeyboardFocusManager__
|
6 |
|
|
|
7 |
|
|
#pragma interface
|
8 |
|
|
|
9 |
|
|
#include <java/lang/Object.h>
|
10 |
|
|
#include <gcj/array.h>
|
11 |
|
|
|
12 |
|
|
extern "Java"
|
13 |
|
|
{
|
14 |
|
|
namespace java
|
15 |
|
|
{
|
16 |
|
|
namespace awt
|
17 |
|
|
{
|
18 |
|
|
class AWTEvent;
|
19 |
|
|
class Component;
|
20 |
|
|
class Container;
|
21 |
|
|
class FocusTraversalPolicy;
|
22 |
|
|
class KeyEventDispatcher;
|
23 |
|
|
class KeyEventPostProcessor;
|
24 |
|
|
class KeyboardFocusManager;
|
25 |
|
|
class Window;
|
26 |
|
|
namespace event
|
27 |
|
|
{
|
28 |
|
|
class KeyEvent;
|
29 |
|
|
}
|
30 |
|
|
}
|
31 |
|
|
namespace beans
|
32 |
|
|
{
|
33 |
|
|
class PropertyChangeListener;
|
34 |
|
|
class PropertyChangeSupport;
|
35 |
|
|
class VetoableChangeListener;
|
36 |
|
|
class VetoableChangeSupport;
|
37 |
|
|
}
|
38 |
|
|
}
|
39 |
|
|
}
|
40 |
|
|
|
41 |
|
|
class java::awt::KeyboardFocusManager : public ::java::lang::Object
|
42 |
|
|
{
|
43 |
|
|
|
44 |
|
|
public:
|
45 |
|
|
KeyboardFocusManager();
|
46 |
|
|
static ::java::awt::KeyboardFocusManager * getCurrentKeyboardFocusManager();
|
47 |
|
|
static void setCurrentKeyboardFocusManager(::java::awt::KeyboardFocusManager *);
|
48 |
|
|
virtual ::java::awt::Component * getFocusOwner();
|
49 |
|
|
public: // actually protected
|
50 |
|
|
virtual ::java::awt::Component * getGlobalFocusOwner();
|
51 |
|
|
virtual void setGlobalFocusOwner(::java::awt::Component *);
|
52 |
|
|
public:
|
53 |
|
|
virtual void clearGlobalFocusOwner();
|
54 |
|
|
virtual ::java::awt::Component * getPermanentFocusOwner();
|
55 |
|
|
public: // actually protected
|
56 |
|
|
virtual ::java::awt::Component * getGlobalPermanentFocusOwner();
|
57 |
|
|
virtual void setGlobalPermanentFocusOwner(::java::awt::Component *);
|
58 |
|
|
public:
|
59 |
|
|
virtual ::java::awt::Window * getFocusedWindow();
|
60 |
|
|
public: // actually protected
|
61 |
|
|
virtual ::java::awt::Window * getGlobalFocusedWindow();
|
62 |
|
|
virtual void setGlobalFocusedWindow(::java::awt::Window *);
|
63 |
|
|
public:
|
64 |
|
|
virtual ::java::awt::Window * getActiveWindow();
|
65 |
|
|
public: // actually protected
|
66 |
|
|
virtual ::java::awt::Window * getGlobalActiveWindow();
|
67 |
|
|
virtual void setGlobalActiveWindow(::java::awt::Window *);
|
68 |
|
|
public:
|
69 |
|
|
virtual ::java::awt::FocusTraversalPolicy * getDefaultFocusTraversalPolicy();
|
70 |
|
|
virtual void setDefaultFocusTraversalPolicy(::java::awt::FocusTraversalPolicy *);
|
71 |
|
|
virtual void setDefaultFocusTraversalKeys(jint, ::java::util::Set *);
|
72 |
|
|
virtual ::java::util::Set * getDefaultFocusTraversalKeys(jint);
|
73 |
|
|
virtual ::java::awt::Container * getCurrentFocusCycleRoot();
|
74 |
|
|
public: // actually protected
|
75 |
|
|
virtual ::java::awt::Container * getGlobalCurrentFocusCycleRoot();
|
76 |
|
|
public:
|
77 |
|
|
virtual void setGlobalCurrentFocusCycleRoot(::java::awt::Container *);
|
78 |
|
|
virtual void addPropertyChangeListener(::java::beans::PropertyChangeListener *);
|
79 |
|
|
virtual void removePropertyChangeListener(::java::beans::PropertyChangeListener *);
|
80 |
|
|
virtual JArray< ::java::beans::PropertyChangeListener * > * getPropertyChangeListeners();
|
81 |
|
|
virtual void addPropertyChangeListener(::java::lang::String *, ::java::beans::PropertyChangeListener *);
|
82 |
|
|
virtual void removePropertyChangeListener(::java::lang::String *, ::java::beans::PropertyChangeListener *);
|
83 |
|
|
virtual JArray< ::java::beans::PropertyChangeListener * > * getPropertyChangeListeners(::java::lang::String *);
|
84 |
|
|
public: // actually protected
|
85 |
|
|
virtual void firePropertyChange(::java::lang::String *, ::java::lang::Object *, ::java::lang::Object *);
|
86 |
|
|
public:
|
87 |
|
|
virtual void addVetoableChangeListener(::java::beans::VetoableChangeListener *);
|
88 |
|
|
virtual void removeVetoableChangeListener(::java::beans::VetoableChangeListener *);
|
89 |
|
|
virtual JArray< ::java::beans::VetoableChangeListener * > * getVetoableChangeListeners();
|
90 |
|
|
virtual void addVetoableChangeListener(::java::lang::String *, ::java::beans::VetoableChangeListener *);
|
91 |
|
|
virtual void removeVetoableChangeListener(::java::lang::String *, ::java::beans::VetoableChangeListener *);
|
92 |
|
|
virtual JArray< ::java::beans::VetoableChangeListener * > * getVetoableChangeListeners(::java::lang::String *);
|
93 |
|
|
public: // actually protected
|
94 |
|
|
virtual void fireVetoableChange(::java::lang::String *, ::java::lang::Object *, ::java::lang::Object *);
|
95 |
|
|
public:
|
96 |
|
|
virtual void addKeyEventDispatcher(::java::awt::KeyEventDispatcher *);
|
97 |
|
|
virtual void removeKeyEventDispatcher(::java::awt::KeyEventDispatcher *);
|
98 |
|
|
public: // actually protected
|
99 |
|
|
virtual ::java::util::List * getKeyEventDispatchers();
|
100 |
|
|
public:
|
101 |
|
|
virtual void addKeyEventPostProcessor(::java::awt::KeyEventPostProcessor *);
|
102 |
|
|
virtual void removeKeyEventPostProcessor(::java::awt::KeyEventPostProcessor *);
|
103 |
|
|
public: // actually protected
|
104 |
|
|
virtual ::java::util::List * getKeyEventPostProcessors();
|
105 |
|
|
public:
|
106 |
|
|
virtual jboolean dispatchEvent(::java::awt::AWTEvent *) = 0;
|
107 |
|
|
virtual void redispatchEvent(::java::awt::Component *, ::java::awt::AWTEvent *);
|
108 |
|
|
virtual jboolean dispatchKeyEvent(::java::awt::event::KeyEvent *) = 0;
|
109 |
|
|
virtual jboolean postProcessKeyEvent(::java::awt::event::KeyEvent *) = 0;
|
110 |
|
|
virtual void processKeyEvent(::java::awt::Component *, ::java::awt::event::KeyEvent *) = 0;
|
111 |
|
|
public: // actually protected
|
112 |
|
|
virtual void enqueueKeyEvents(jlong, ::java::awt::Component *) = 0;
|
113 |
|
|
virtual void dequeueKeyEvents(jlong, ::java::awt::Component *) = 0;
|
114 |
|
|
virtual void discardKeyEvents(::java::awt::Component *) = 0;
|
115 |
|
|
public:
|
116 |
|
|
virtual void focusNextComponent(::java::awt::Component *) = 0;
|
117 |
|
|
virtual void focusPreviousComponent(::java::awt::Component *) = 0;
|
118 |
|
|
virtual void upFocusCycle(::java::awt::Component *) = 0;
|
119 |
|
|
virtual void downFocusCycle(::java::awt::Container *) = 0;
|
120 |
|
|
virtual void focusNextComponent();
|
121 |
|
|
virtual void focusPreviousComponent();
|
122 |
|
|
virtual void upFocusCycle();
|
123 |
|
|
virtual void downFocusCycle();
|
124 |
|
|
private:
|
125 |
|
|
::java::lang::Object * getObject(::java::util::Map *);
|
126 |
|
|
::java::lang::Object * getGlobalObject(::java::util::Map *, jboolean);
|
127 |
|
|
void setGlobalObject(::java::util::Map *, ::java::lang::Object *, ::java::lang::String *);
|
128 |
|
|
public: // actually package-private
|
129 |
|
|
static ::java::awt::AWTEvent * retargetFocusEvent(::java::awt::AWTEvent *);
|
130 |
|
|
static void addLightweightFocusRequest(::java::awt::Component *, ::java::awt::Component *);
|
131 |
|
|
public:
|
132 |
|
|
static const jint FORWARD_TRAVERSAL_KEYS = 0;
|
133 |
|
|
static const jint BACKWARD_TRAVERSAL_KEYS = 1;
|
134 |
|
|
static const jint UP_CYCLE_TRAVERSAL_KEYS = 2;
|
135 |
|
|
static const jint DOWN_CYCLE_TRAVERSAL_KEYS = 3;
|
136 |
|
|
private:
|
137 |
|
|
static ::java::util::Set * DEFAULT_FORWARD_KEYS;
|
138 |
|
|
static ::java::util::Set * DEFAULT_BACKWARD_KEYS;
|
139 |
|
|
static ::java::util::Map * currentKeyboardFocusManagers;
|
140 |
|
|
static ::java::util::Map * currentFocusOwners;
|
141 |
|
|
static ::java::util::Map * currentPermanentFocusOwners;
|
142 |
|
|
static ::java::util::Map * currentFocusedWindows;
|
143 |
|
|
static ::java::util::Map * currentActiveWindows;
|
144 |
|
|
static ::java::util::Map * currentFocusCycleRoots;
|
145 |
|
|
::java::awt::FocusTraversalPolicy * __attribute__((aligned(__alignof__( ::java::lang::Object)))) defaultPolicy;
|
146 |
|
|
JArray< ::java::util::Set * > * defaultFocusKeys;
|
147 |
|
|
::java::beans::PropertyChangeSupport * propertyChangeSupport;
|
148 |
|
|
::java::beans::VetoableChangeSupport * vetoableChangeSupport;
|
149 |
|
|
::java::util::ArrayList * keyEventDispatchers;
|
150 |
|
|
::java::util::ArrayList * keyEventPostProcessors;
|
151 |
|
|
static ::java::util::HashMap * focusRequests;
|
152 |
|
|
public:
|
153 |
|
|
static ::java::lang::Class class$;
|
154 |
|
|
};
|
155 |
|
|
|
156 |
|
|
#endif // __java_awt_KeyboardFocusManager__
|