JPopupMenu.h 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __javax_swing_JPopupMenu__
  3. #define __javax_swing_JPopupMenu__
  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 Dimension;
  15. class Insets;
  16. namespace event
  17. {
  18. class KeyEvent;
  19. class MouseEvent;
  20. }
  21. }
  22. namespace beans
  23. {
  24. class PropertyChangeListener;
  25. }
  26. }
  27. namespace javax
  28. {
  29. namespace accessibility
  30. {
  31. class AccessibleContext;
  32. }
  33. namespace swing
  34. {
  35. class Action;
  36. class JMenuItem;
  37. class JPopupMenu;
  38. class MenuElement;
  39. class MenuSelectionManager;
  40. class Popup;
  41. class SingleSelectionModel;
  42. namespace event
  43. {
  44. class MenuKeyListener;
  45. class PopupMenuListener;
  46. }
  47. namespace plaf
  48. {
  49. class PopupMenuUI;
  50. }
  51. }
  52. }
  53. }
  54. class javax::swing::JPopupMenu : public ::javax::swing::JComponent
  55. {
  56. public:
  57. JPopupMenu();
  58. JPopupMenu(::java::lang::String *);
  59. virtual ::javax::swing::JMenuItem * add(::javax::swing::JMenuItem *);
  60. virtual ::javax::swing::JMenuItem * add(::java::lang::String *);
  61. virtual ::javax::swing::JMenuItem * add(::javax::swing::Action *);
  62. virtual void remove(jint);
  63. virtual void insert(::javax::swing::Action *, jint);
  64. virtual void insert(::java::awt::Component *, jint);
  65. static jboolean getDefaultLightWeightPopupEnabled();
  66. static void setDefaultLightWeightPopupEnabled(jboolean);
  67. virtual ::javax::swing::plaf::PopupMenuUI * getUI();
  68. virtual void setUI(::javax::swing::plaf::PopupMenuUI *);
  69. virtual void updateUI();
  70. virtual ::java::lang::String * getUIClassID();
  71. virtual ::javax::swing::SingleSelectionModel * getSelectionModel();
  72. virtual void setSelectionModel(::javax::swing::SingleSelectionModel *);
  73. public: // actually protected
  74. virtual ::javax::swing::JMenuItem * createActionComponent(::javax::swing::Action *);
  75. virtual ::java::beans::PropertyChangeListener * createActionChangeListener(::javax::swing::JMenuItem *);
  76. public:
  77. virtual jboolean isLightWeightPopupEnabled();
  78. virtual void setLightWeightPopupEnabled(jboolean);
  79. virtual ::java::lang::String * getLabel();
  80. virtual void setLabel(::java::lang::String *);
  81. virtual void addSeparator();
  82. virtual void addMenuKeyListener(::javax::swing::event::MenuKeyListener *);
  83. virtual void removeMenuKeyListener(::javax::swing::event::MenuKeyListener *);
  84. virtual JArray< ::javax::swing::event::MenuKeyListener * > * getMenuKeyListeners();
  85. virtual void addPopupMenuListener(::javax::swing::event::PopupMenuListener *);
  86. virtual void removePopupMenuListener(::javax::swing::event::PopupMenuListener *);
  87. virtual JArray< ::javax::swing::event::PopupMenuListener * > * getPopupMenuListeners();
  88. public: // actually protected
  89. virtual void firePopupMenuWillBecomeVisible();
  90. virtual void firePopupMenuWillBecomeInvisible();
  91. virtual void firePopupMenuCanceled();
  92. public:
  93. virtual void pack();
  94. virtual jboolean isVisible();
  95. virtual void setVisible(jboolean);
  96. virtual void setLocation(jint, jint);
  97. virtual ::java::awt::Component * getInvoker();
  98. virtual void setInvoker(::java::awt::Component *);
  99. virtual void show(::java::awt::Component *, jint, jint);
  100. virtual ::java::awt::Component * getComponentAtIndex(jint);
  101. virtual jint getComponentIndex(::java::awt::Component *);
  102. virtual void setPopupSize(::java::awt::Dimension *);
  103. virtual void setPopupSize(jint, jint);
  104. virtual void setSelected(::java::awt::Component *);
  105. virtual jboolean isBorderPainted();
  106. virtual void setBorderPainted(jboolean);
  107. virtual ::java::awt::Insets * getMargin();
  108. public: // actually protected
  109. virtual ::java::lang::String * paramString();
  110. public:
  111. virtual void processMouseEvent(::java::awt::event::MouseEvent *, JArray< ::javax::swing::MenuElement * > *, ::javax::swing::MenuSelectionManager *);
  112. virtual void processKeyEvent(::java::awt::event::KeyEvent *, JArray< ::javax::swing::MenuElement * > *, ::javax::swing::MenuSelectionManager *);
  113. virtual void menuSelectionChanged(jboolean);
  114. virtual JArray< ::javax::swing::MenuElement * > * getSubElements();
  115. virtual ::java::awt::Component * getComponent();
  116. virtual jboolean isPopupTrigger(::java::awt::event::MouseEvent *);
  117. virtual ::javax::accessibility::AccessibleContext * getAccessibleContext();
  118. public: // actually package-private
  119. virtual jboolean onTop();
  120. private:
  121. static const jlong serialVersionUID = -8336996630009646009LL;
  122. jboolean __attribute__((aligned(__alignof__( ::javax::swing::JComponent)))) borderPainted;
  123. static jboolean DefaultLightWeightPopupEnabled;
  124. public: // actually package-private
  125. ::java::awt::Component * invoker;
  126. private:
  127. ::java::lang::String * label;
  128. ::java::awt::Insets * margin;
  129. jboolean lightWeightPopupEnabled;
  130. public: // actually protected
  131. ::javax::swing::SingleSelectionModel * selectionModel;
  132. private:
  133. ::javax::swing::Popup * popup;
  134. jint popupLocationX;
  135. jint popupLocationY;
  136. jboolean visible;
  137. public:
  138. static ::java::lang::Class class$;
  139. };
  140. #endif // __javax_swing_JPopupMenu__