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