JMenuBar.h 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __javax_swing_JMenuBar__
  3. #define __javax_swing_JMenuBar__
  4. #pragma interface
  5. #include <javax/swing/JComponent.h>
  6. #include <gcj/array.h>
  7. extern "Java"
  8. {
  9. namespace java
  10. {
  11. namespace awt
  12. {
  13. class Component;
  14. class Graphics;
  15. class Insets;
  16. namespace event
  17. {
  18. class KeyEvent;
  19. class MouseEvent;
  20. }
  21. }
  22. }
  23. namespace javax
  24. {
  25. namespace accessibility
  26. {
  27. class AccessibleContext;
  28. }
  29. namespace swing
  30. {
  31. class JMenu;
  32. class JMenuBar;
  33. class KeyStroke;
  34. class MenuElement;
  35. class MenuSelectionManager;
  36. class SingleSelectionModel;
  37. namespace plaf
  38. {
  39. class MenuBarUI;
  40. }
  41. }
  42. }
  43. }
  44. class javax::swing::JMenuBar : public ::javax::swing::JComponent
  45. {
  46. public:
  47. JMenuBar();
  48. virtual ::javax::swing::JMenu * add(::javax::swing::JMenu *);
  49. virtual void addNotify();
  50. virtual ::javax::accessibility::AccessibleContext * getAccessibleContext();
  51. virtual ::java::awt::Component * getComponent();
  52. virtual ::java::awt::Component * getComponentAtIndex(jint);
  53. virtual jint getComponentIndex(::java::awt::Component *);
  54. virtual ::javax::swing::JMenu * getHelpMenu();
  55. virtual ::java::awt::Insets * getMargin();
  56. virtual ::javax::swing::JMenu * getMenu(jint);
  57. virtual jint getMenuCount();
  58. virtual ::javax::swing::SingleSelectionModel * getSelectionModel();
  59. virtual JArray< ::javax::swing::MenuElement * > * getSubElements();
  60. virtual ::javax::swing::plaf::MenuBarUI * getUI();
  61. virtual ::java::lang::String * getUIClassID();
  62. virtual jboolean isBorderPainted();
  63. virtual jboolean isSelected();
  64. virtual void menuSelectionChanged(jboolean);
  65. public: // actually protected
  66. virtual void paintBorder(::java::awt::Graphics *);
  67. virtual ::java::lang::String * paramString();
  68. public:
  69. virtual void processKeyEvent(::java::awt::event::KeyEvent *, JArray< ::javax::swing::MenuElement * > *, ::javax::swing::MenuSelectionManager *);
  70. public: // actually protected
  71. virtual jboolean processKeyBinding(::javax::swing::KeyStroke *, ::java::awt::event::KeyEvent *, jint, jboolean);
  72. public: // actually package-private
  73. static jboolean processKeyBindingHelper(::javax::swing::MenuElement *, ::javax::swing::KeyStroke *, ::java::awt::event::KeyEvent *, jint, jboolean);
  74. public:
  75. virtual void processMouseEvent(::java::awt::event::MouseEvent *, JArray< ::javax::swing::MenuElement * > *, ::javax::swing::MenuSelectionManager *);
  76. virtual void removeNotify();
  77. virtual void setBorderPainted(jboolean);
  78. virtual void setHelpMenu(::javax::swing::JMenu *);
  79. virtual void setMargin(::java::awt::Insets *);
  80. virtual void setSelected(::java::awt::Component *);
  81. virtual void setSelectionModel(::javax::swing::SingleSelectionModel *);
  82. virtual void setUI(::javax::swing::plaf::MenuBarUI *);
  83. virtual void updateUI();
  84. private:
  85. static const jlong serialVersionUID = -8191026883931977036LL;
  86. ::javax::swing::SingleSelectionModel * __attribute__((aligned(__alignof__( ::javax::swing::JComponent)))) selectionModel;
  87. jboolean borderPainted;
  88. ::java::awt::Insets * margin;
  89. public:
  90. static ::java::lang::Class class$;
  91. };
  92. #endif // __javax_swing_JMenuBar__