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