summaryrefslogtreecommitdiff
path: root/libjava/javax/swing/JMenu.h
blob: 112d995a032ed4f04727c0cb3bc4447d326ddd45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __javax_swing_JMenu__
#define __javax_swing_JMenu__

#pragma interface

#include <javax/swing/JMenuItem.h>
#include <gcj/array.h>

extern "Java"
{
  namespace java
  {
    namespace awt
    {
        class Component;
        class Point;
      namespace event
      {
          class KeyEvent;
      }
    }
    namespace beans
    {
        class PropertyChangeListener;
    }
  }
  namespace javax
  {
    namespace accessibility
    {
        class AccessibleContext;
    }
    namespace swing
    {
        class Action;
        class ButtonModel;
        class JMenu;
        class JMenu$WinListener;
        class JMenuItem;
        class JPopupMenu;
        class KeyStroke;
        class MenuElement;
      namespace event
      {
          class ChangeListener;
          class MenuEvent;
          class MenuListener;
      }
    }
  }
}

class javax::swing::JMenu : public ::javax::swing::JMenuItem
{

public:
  JMenu();
  JMenu(::java::lang::String *);
  JMenu(::javax::swing::Action *);
  JMenu(::java::lang::String *, jboolean);
  virtual ::javax::swing::JMenuItem * add(::javax::swing::JMenuItem *);
  virtual ::java::awt::Component * add(::java::awt::Component *);
  virtual ::java::awt::Component * add(::java::awt::Component *, jint);
  virtual ::javax::swing::JMenuItem * add(::java::lang::String *);
  virtual ::javax::swing::JMenuItem * add(::javax::swing::Action *);
  virtual void remove(::javax::swing::JMenuItem *);
  virtual void remove(jint);
  virtual void remove(::java::awt::Component *);
  virtual void removeAll();
  virtual void insert(::java::lang::String *, jint);
  virtual ::javax::swing::JMenuItem * insert(::javax::swing::JMenuItem *, jint);
  virtual ::javax::swing::JMenuItem * insert(::javax::swing::Action *, jint);
  virtual void updateUI();
  virtual ::java::lang::String * getUIClassID();
  virtual void setModel(::javax::swing::ButtonModel *);
  virtual jboolean isSelected();
  virtual void setSelected(jboolean);
  virtual jboolean isPopupMenuVisible();
  virtual void setPopupMenuVisible(jboolean);
public: // actually protected
  virtual ::java::awt::Point * getPopupMenuOrigin();
public:
  virtual jint getDelay();
  virtual void setDelay(jint);
  virtual void setMenuLocation(jint, jint);
public: // actually protected
  virtual ::javax::swing::JMenuItem * createActionComponent(::javax::swing::Action *);
  virtual ::java::beans::PropertyChangeListener * createActionChangeListener(::javax::swing::JMenuItem *);
public:
  virtual void addSeparator();
  virtual void insertSeparator(jint);
  virtual ::javax::swing::JMenuItem * getItem(jint);
  virtual jint getItemCount();
  virtual jboolean isTearOff();
  virtual jint getMenuComponentCount();
  virtual ::java::awt::Component * getMenuComponent(jint);
  virtual JArray< ::java::awt::Component * > * getMenuComponents();
  virtual jboolean isTopLevelMenu();
  virtual jboolean isMenuComponent(::java::awt::Component *);
  virtual ::javax::swing::JPopupMenu * getPopupMenu();
  virtual void addMenuListener(::javax::swing::event::MenuListener *);
  virtual void removeMenuListener(::javax::swing::event::MenuListener *);
  virtual JArray< ::javax::swing::event::MenuListener * > * getMenuListeners();
public: // actually protected
  virtual void fireMenuSelected();
  virtual void fireMenuDeselected();
  virtual void fireMenuCanceled();
  virtual ::javax::swing::JMenu$WinListener * createWinListener(::javax::swing::JPopupMenu *);
public:
  virtual void menuSelectionChanged(jboolean);
  virtual JArray< ::javax::swing::MenuElement * > * getSubElements();
  virtual ::java::awt::Component * getComponent();
  virtual void setAccelerator(::javax::swing::KeyStroke *);
public: // actually protected
  virtual void processKeyEvent(::java::awt::event::KeyEvent *);
public:
  virtual void doClick(jint);
public: // actually protected
  virtual ::java::lang::String * paramString();
public:
  virtual ::javax::accessibility::AccessibleContext * getAccessibleContext();
public: // actually package-private
  virtual JArray< ::javax::swing::MenuElement * > * createPath(::javax::swing::JMenu *);
private:
  static const jlong serialVersionUID = 4227225638931828014LL;
  ::javax::swing::JPopupMenu * __attribute__((aligned(__alignof__( ::javax::swing::JMenuItem)))) popupMenu;
  ::javax::swing::event::MenuEvent * menuEvent;
  jint delay;
public: // actually protected
  ::javax::swing::JMenu$WinListener * popupListener;
private:
  ::java::awt::Point * menuLocation;
  ::javax::swing::event::ChangeListener * menuChangeListener;
public:
  static ::java::lang::Class class$;
};

#endif // __javax_swing_JMenu__