1 |
759 |
jeremybenn |
|
2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
3 |
|
|
|
4 |
|
|
#ifndef __javax_swing_JMenuBar__
|
5 |
|
|
#define __javax_swing_JMenuBar__
|
6 |
|
|
|
7 |
|
|
#pragma interface
|
8 |
|
|
|
9 |
|
|
#include <javax/swing/JComponent.h>
|
10 |
|
|
#include <gcj/array.h>
|
11 |
|
|
|
12 |
|
|
extern "Java"
|
13 |
|
|
{
|
14 |
|
|
namespace java
|
15 |
|
|
{
|
16 |
|
|
namespace awt
|
17 |
|
|
{
|
18 |
|
|
class Component;
|
19 |
|
|
class Graphics;
|
20 |
|
|
class Insets;
|
21 |
|
|
namespace event
|
22 |
|
|
{
|
23 |
|
|
class KeyEvent;
|
24 |
|
|
class MouseEvent;
|
25 |
|
|
}
|
26 |
|
|
}
|
27 |
|
|
}
|
28 |
|
|
namespace javax
|
29 |
|
|
{
|
30 |
|
|
namespace accessibility
|
31 |
|
|
{
|
32 |
|
|
class AccessibleContext;
|
33 |
|
|
}
|
34 |
|
|
namespace swing
|
35 |
|
|
{
|
36 |
|
|
class JMenu;
|
37 |
|
|
class JMenuBar;
|
38 |
|
|
class KeyStroke;
|
39 |
|
|
class MenuElement;
|
40 |
|
|
class MenuSelectionManager;
|
41 |
|
|
class SingleSelectionModel;
|
42 |
|
|
namespace plaf
|
43 |
|
|
{
|
44 |
|
|
class MenuBarUI;
|
45 |
|
|
}
|
46 |
|
|
}
|
47 |
|
|
}
|
48 |
|
|
}
|
49 |
|
|
|
50 |
|
|
class javax::swing::JMenuBar : public ::javax::swing::JComponent
|
51 |
|
|
{
|
52 |
|
|
|
53 |
|
|
public:
|
54 |
|
|
JMenuBar();
|
55 |
|
|
virtual ::javax::swing::JMenu * add(::javax::swing::JMenu *);
|
56 |
|
|
virtual void addNotify();
|
57 |
|
|
virtual ::javax::accessibility::AccessibleContext * getAccessibleContext();
|
58 |
|
|
virtual ::java::awt::Component * getComponent();
|
59 |
|
|
virtual ::java::awt::Component * getComponentAtIndex(jint);
|
60 |
|
|
virtual jint getComponentIndex(::java::awt::Component *);
|
61 |
|
|
virtual ::javax::swing::JMenu * getHelpMenu();
|
62 |
|
|
virtual ::java::awt::Insets * getMargin();
|
63 |
|
|
virtual ::javax::swing::JMenu * getMenu(jint);
|
64 |
|
|
virtual jint getMenuCount();
|
65 |
|
|
virtual ::javax::swing::SingleSelectionModel * getSelectionModel();
|
66 |
|
|
virtual JArray< ::javax::swing::MenuElement * > * getSubElements();
|
67 |
|
|
virtual ::javax::swing::plaf::MenuBarUI * getUI();
|
68 |
|
|
virtual ::java::lang::String * getUIClassID();
|
69 |
|
|
virtual jboolean isBorderPainted();
|
70 |
|
|
virtual jboolean isSelected();
|
71 |
|
|
virtual void menuSelectionChanged(jboolean);
|
72 |
|
|
public: // actually protected
|
73 |
|
|
virtual void paintBorder(::java::awt::Graphics *);
|
74 |
|
|
virtual ::java::lang::String * paramString();
|
75 |
|
|
public:
|
76 |
|
|
virtual void processKeyEvent(::java::awt::event::KeyEvent *, JArray< ::javax::swing::MenuElement * > *, ::javax::swing::MenuSelectionManager *);
|
77 |
|
|
public: // actually protected
|
78 |
|
|
virtual jboolean processKeyBinding(::javax::swing::KeyStroke *, ::java::awt::event::KeyEvent *, jint, jboolean);
|
79 |
|
|
public: // actually package-private
|
80 |
|
|
static jboolean processKeyBindingHelper(::javax::swing::MenuElement *, ::javax::swing::KeyStroke *, ::java::awt::event::KeyEvent *, jint, jboolean);
|
81 |
|
|
public:
|
82 |
|
|
virtual void processMouseEvent(::java::awt::event::MouseEvent *, JArray< ::javax::swing::MenuElement * > *, ::javax::swing::MenuSelectionManager *);
|
83 |
|
|
virtual void removeNotify();
|
84 |
|
|
virtual void setBorderPainted(jboolean);
|
85 |
|
|
virtual void setHelpMenu(::javax::swing::JMenu *);
|
86 |
|
|
virtual void setMargin(::java::awt::Insets *);
|
87 |
|
|
virtual void setSelected(::java::awt::Component *);
|
88 |
|
|
virtual void setSelectionModel(::javax::swing::SingleSelectionModel *);
|
89 |
|
|
virtual void setUI(::javax::swing::plaf::MenuBarUI *);
|
90 |
|
|
virtual void updateUI();
|
91 |
|
|
private:
|
92 |
|
|
static const jlong serialVersionUID = -8191026883931977036LL;
|
93 |
|
|
::javax::swing::SingleSelectionModel * __attribute__((aligned(__alignof__( ::javax::swing::JComponent)))) selectionModel;
|
94 |
|
|
jboolean borderPainted;
|
95 |
|
|
::java::awt::Insets * margin;
|
96 |
|
|
public:
|
97 |
|
|
static ::java::lang::Class class$;
|
98 |
|
|
};
|
99 |
|
|
|
100 |
|
|
#endif // __javax_swing_JMenuBar__
|