KeyboardFocusManager.h 6.9 KB

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