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