JMenu.h 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __javax_swing_JMenu__
  3. #define __javax_swing_JMenu__
  4. #pragma interface
  5. #include <javax/swing/JMenuItem.h>
  6. #include <gcj/array.h>
  7. extern "Java"
  8. {
  9. namespace java
  10. {
  11. namespace awt
  12. {
  13. class Component;
  14. class Point;
  15. namespace event
  16. {
  17. class KeyEvent;
  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 ButtonModel;
  35. class JMenu;
  36. class JMenu$WinListener;
  37. class JMenuItem;
  38. class JPopupMenu;
  39. class KeyStroke;
  40. class MenuElement;
  41. namespace event
  42. {
  43. class ChangeListener;
  44. class MenuEvent;
  45. class MenuListener;
  46. }
  47. }
  48. }
  49. }
  50. class javax::swing::JMenu : public ::javax::swing::JMenuItem
  51. {
  52. public:
  53. JMenu();
  54. JMenu(::java::lang::String *);
  55. JMenu(::javax::swing::Action *);
  56. JMenu(::java::lang::String *, jboolean);
  57. virtual ::javax::swing::JMenuItem * add(::javax::swing::JMenuItem *);
  58. virtual ::java::awt::Component * add(::java::awt::Component *);
  59. virtual ::java::awt::Component * add(::java::awt::Component *, jint);
  60. virtual ::javax::swing::JMenuItem * add(::java::lang::String *);
  61. virtual ::javax::swing::JMenuItem * add(::javax::swing::Action *);
  62. virtual void remove(::javax::swing::JMenuItem *);
  63. virtual void remove(jint);
  64. virtual void remove(::java::awt::Component *);
  65. virtual void removeAll();
  66. virtual void insert(::java::lang::String *, jint);
  67. virtual ::javax::swing::JMenuItem * insert(::javax::swing::JMenuItem *, jint);
  68. virtual ::javax::swing::JMenuItem * insert(::javax::swing::Action *, jint);
  69. virtual void updateUI();
  70. virtual ::java::lang::String * getUIClassID();
  71. virtual void setModel(::javax::swing::ButtonModel *);
  72. virtual jboolean isSelected();
  73. virtual void setSelected(jboolean);
  74. virtual jboolean isPopupMenuVisible();
  75. virtual void setPopupMenuVisible(jboolean);
  76. public: // actually protected
  77. virtual ::java::awt::Point * getPopupMenuOrigin();
  78. public:
  79. virtual jint getDelay();
  80. virtual void setDelay(jint);
  81. virtual void setMenuLocation(jint, jint);
  82. public: // actually protected
  83. virtual ::javax::swing::JMenuItem * createActionComponent(::javax::swing::Action *);
  84. virtual ::java::beans::PropertyChangeListener * createActionChangeListener(::javax::swing::JMenuItem *);
  85. public:
  86. virtual void addSeparator();
  87. virtual void insertSeparator(jint);
  88. virtual ::javax::swing::JMenuItem * getItem(jint);
  89. virtual jint getItemCount();
  90. virtual jboolean isTearOff();
  91. virtual jint getMenuComponentCount();
  92. virtual ::java::awt::Component * getMenuComponent(jint);
  93. virtual JArray< ::java::awt::Component * > * getMenuComponents();
  94. virtual jboolean isTopLevelMenu();
  95. virtual jboolean isMenuComponent(::java::awt::Component *);
  96. virtual ::javax::swing::JPopupMenu * getPopupMenu();
  97. virtual void addMenuListener(::javax::swing::event::MenuListener *);
  98. virtual void removeMenuListener(::javax::swing::event::MenuListener *);
  99. virtual JArray< ::javax::swing::event::MenuListener * > * getMenuListeners();
  100. public: // actually protected
  101. virtual void fireMenuSelected();
  102. virtual void fireMenuDeselected();
  103. virtual void fireMenuCanceled();
  104. virtual ::javax::swing::JMenu$WinListener * createWinListener(::javax::swing::JPopupMenu *);
  105. public:
  106. virtual void menuSelectionChanged(jboolean);
  107. virtual JArray< ::javax::swing::MenuElement * > * getSubElements();
  108. virtual ::java::awt::Component * getComponent();
  109. virtual void setAccelerator(::javax::swing::KeyStroke *);
  110. public: // actually protected
  111. virtual void processKeyEvent(::java::awt::event::KeyEvent *);
  112. public:
  113. virtual void doClick(jint);
  114. public: // actually protected
  115. virtual ::java::lang::String * paramString();
  116. public:
  117. virtual ::javax::accessibility::AccessibleContext * getAccessibleContext();
  118. public: // actually package-private
  119. virtual JArray< ::javax::swing::MenuElement * > * createPath(::javax::swing::JMenu *);
  120. private:
  121. static const jlong serialVersionUID = 4227225638931828014LL;
  122. ::javax::swing::JPopupMenu * __attribute__((aligned(__alignof__( ::javax::swing::JMenuItem)))) popupMenu;
  123. ::javax::swing::event::MenuEvent * menuEvent;
  124. jint delay;
  125. public: // actually protected
  126. ::javax::swing::JMenu$WinListener * popupListener;
  127. private:
  128. ::java::awt::Point * menuLocation;
  129. ::javax::swing::event::ChangeListener * menuChangeListener;
  130. public:
  131. static ::java::lang::Class class$;
  132. };
  133. #endif // __javax_swing_JMenu__