MenuItem.h 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __java_awt_MenuItem__
  3. #define __java_awt_MenuItem__
  4. #pragma interface
  5. #include <java/awt/MenuComponent.h>
  6. #include <gcj/array.h>
  7. extern "Java"
  8. {
  9. namespace java
  10. {
  11. namespace awt
  12. {
  13. class AWTEvent;
  14. class MenuItem;
  15. class MenuShortcut;
  16. namespace event
  17. {
  18. class ActionEvent;
  19. class ActionListener;
  20. }
  21. }
  22. }
  23. namespace javax
  24. {
  25. namespace accessibility
  26. {
  27. class AccessibleContext;
  28. }
  29. }
  30. }
  31. class java::awt::MenuItem : public ::java::awt::MenuComponent
  32. {
  33. public:
  34. MenuItem();
  35. MenuItem(::java::lang::String *);
  36. MenuItem(::java::lang::String *, ::java::awt::MenuShortcut *);
  37. virtual ::java::lang::String * getLabel();
  38. virtual void setLabel(::java::lang::String *);
  39. virtual jboolean isEnabled();
  40. virtual void setEnabled(jboolean);
  41. virtual void enable(jboolean);
  42. virtual void enable();
  43. virtual void disable();
  44. virtual ::java::awt::MenuShortcut * getShortcut();
  45. virtual void setShortcut(::java::awt::MenuShortcut *);
  46. virtual void deleteShortcut();
  47. virtual ::java::lang::String * getActionCommand();
  48. virtual void setActionCommand(::java::lang::String *);
  49. public: // actually protected
  50. virtual void enableEvents(jlong);
  51. virtual void disableEvents(jlong);
  52. public:
  53. virtual void addNotify();
  54. virtual void addActionListener(::java::awt::event::ActionListener *);
  55. virtual void removeActionListener(::java::awt::event::ActionListener *);
  56. virtual JArray< ::java::awt::event::ActionListener * > * getActionListeners();
  57. virtual JArray< ::java::util::EventListener * > * getListeners(::java::lang::Class *);
  58. public: // actually package-private
  59. virtual void dispatchEventImpl(::java::awt::AWTEvent *);
  60. public: // actually protected
  61. virtual void processEvent(::java::awt::AWTEvent *);
  62. virtual void processActionEvent(::java::awt::event::ActionEvent *);
  63. public:
  64. virtual ::java::lang::String * paramString();
  65. virtual ::javax::accessibility::AccessibleContext * getAccessibleContext();
  66. public: // actually package-private
  67. virtual ::java::lang::String * generateName();
  68. private:
  69. static jlong getUniqueLong();
  70. static jlong next_menuitem_number;
  71. static const jlong serialVersionUID = -21757335363267194LL;
  72. public: // actually package-private
  73. ::java::lang::String * __attribute__((aligned(__alignof__( ::java::awt::MenuComponent)))) actionCommand;
  74. jboolean enabled;
  75. jlong eventMask;
  76. ::java::lang::String * label;
  77. private:
  78. ::java::awt::MenuShortcut * shortcut;
  79. ::java::awt::event::ActionListener * action_listeners;
  80. public:
  81. static ::java::lang::Class class$;
  82. };
  83. #endif // __java_awt_MenuItem__