JMenuItem.h 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __javax_swing_JMenuItem__
  3. #define __javax_swing_JMenuItem__
  4. #pragma interface
  5. #include <javax/swing/AbstractButton.h>
  6. #include <gcj/array.h>
  7. extern "Java"
  8. {
  9. namespace java
  10. {
  11. namespace awt
  12. {
  13. class Component;
  14. namespace event
  15. {
  16. class KeyEvent;
  17. class MouseEvent;
  18. }
  19. }
  20. namespace beans
  21. {
  22. class PropertyChangeListener;
  23. }
  24. }
  25. namespace javax
  26. {
  27. namespace accessibility
  28. {
  29. class AccessibleContext;
  30. }
  31. namespace swing
  32. {
  33. class Action;
  34. class Icon;
  35. class JMenuItem;
  36. class KeyStroke;
  37. class MenuElement;
  38. class MenuSelectionManager;
  39. namespace event
  40. {
  41. class MenuDragMouseEvent;
  42. class MenuDragMouseListener;
  43. class MenuKeyEvent;
  44. class MenuKeyListener;
  45. }
  46. namespace plaf
  47. {
  48. class MenuItemUI;
  49. }
  50. }
  51. }
  52. }
  53. class javax::swing::JMenuItem : public ::javax::swing::AbstractButton
  54. {
  55. public:
  56. JMenuItem();
  57. JMenuItem(::javax::swing::Icon *);
  58. JMenuItem(::java::lang::String *);
  59. JMenuItem(::javax::swing::Action *);
  60. JMenuItem(::java::lang::String *, ::javax::swing::Icon *);
  61. JMenuItem(::java::lang::String *, jint);
  62. public: // actually protected
  63. virtual void init(::java::lang::String *, ::javax::swing::Icon *);
  64. public:
  65. virtual void setUI(::javax::swing::plaf::MenuItemUI *);
  66. virtual void updateUI();
  67. virtual ::java::lang::String * getUIClassID();
  68. virtual jboolean isArmed();
  69. virtual void setArmed(jboolean);
  70. virtual void setEnabled(jboolean);
  71. virtual ::javax::swing::KeyStroke * getAccelerator();
  72. virtual void setAccelerator(::javax::swing::KeyStroke *);
  73. public: // actually protected
  74. virtual void configurePropertiesFromAction(::javax::swing::Action *);
  75. virtual ::java::beans::PropertyChangeListener * createActionPropertyChangeListener(::javax::swing::Action *);
  76. public:
  77. virtual void processMouseEvent(::java::awt::event::MouseEvent *, JArray< ::javax::swing::MenuElement * > *, ::javax::swing::MenuSelectionManager *);
  78. virtual void processKeyEvent(::java::awt::event::KeyEvent *, JArray< ::javax::swing::MenuElement * > *, ::javax::swing::MenuSelectionManager *);
  79. virtual void processMenuDragMouseEvent(::javax::swing::event::MenuDragMouseEvent *);
  80. virtual void processMenuKeyEvent(::javax::swing::event::MenuKeyEvent *);
  81. public: // actually protected
  82. virtual void fireMenuDragMouseEntered(::javax::swing::event::MenuDragMouseEvent *);
  83. virtual void fireMenuDragMouseExited(::javax::swing::event::MenuDragMouseEvent *);
  84. virtual void fireMenuDragMouseDragged(::javax::swing::event::MenuDragMouseEvent *);
  85. virtual void fireMenuDragMouseReleased(::javax::swing::event::MenuDragMouseEvent *);
  86. virtual void fireMenuKeyPressed(::javax::swing::event::MenuKeyEvent *);
  87. virtual void fireMenuKeyReleased(::javax::swing::event::MenuKeyEvent *);
  88. virtual void fireMenuKeyTyped(::javax::swing::event::MenuKeyEvent *);
  89. public:
  90. virtual void menuSelectionChanged(jboolean);
  91. virtual JArray< ::javax::swing::MenuElement * > * getSubElements();
  92. virtual ::java::awt::Component * getComponent();
  93. virtual void addMenuDragMouseListener(::javax::swing::event::MenuDragMouseListener *);
  94. virtual void removeMenuDragMouseListener(::javax::swing::event::MenuDragMouseListener *);
  95. virtual JArray< ::javax::swing::event::MenuDragMouseListener * > * getMenuDragMouseListeners();
  96. virtual void addMenuKeyListener(::javax::swing::event::MenuKeyListener *);
  97. virtual void removeMenuKeyListener(::javax::swing::event::MenuKeyListener *);
  98. virtual JArray< ::javax::swing::event::MenuKeyListener * > * getMenuKeyListeners();
  99. public: // actually protected
  100. virtual ::java::lang::String * paramString();
  101. public:
  102. virtual ::javax::accessibility::AccessibleContext * getAccessibleContext();
  103. public: // actually package-private
  104. virtual jboolean onTop();
  105. private:
  106. static const jlong serialVersionUID = -1681004643499461044LL;
  107. ::javax::swing::KeyStroke * __attribute__((aligned(__alignof__( ::javax::swing::AbstractButton)))) accelerator;
  108. jboolean isDragging;
  109. public:
  110. static ::java::lang::Class class$;
  111. };
  112. #endif // __javax_swing_JMenuItem__