summaryrefslogtreecommitdiff
path: root/libjava/javax/swing/JPopupMenu.h
blob: 44bbc89bd3ebc6bcab0f2f01293f76b9553b3582 (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
142
143
144
145
146
147
148
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __javax_swing_JPopupMenu__
#define __javax_swing_JPopupMenu__

#pragma interface

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

extern "Java"
{
  namespace java
  {
    namespace awt
    {
        class Component;
        class Dimension;
        class Insets;
      namespace event
      {
          class KeyEvent;
          class MouseEvent;
      }
    }
    namespace beans
    {
        class PropertyChangeListener;
    }
  }
  namespace javax
  {
    namespace accessibility
    {
        class AccessibleContext;
    }
    namespace swing
    {
        class Action;
        class JMenuItem;
        class JPopupMenu;
        class MenuElement;
        class MenuSelectionManager;
        class Popup;
        class SingleSelectionModel;
      namespace event
      {
          class MenuKeyListener;
          class PopupMenuListener;
      }
      namespace plaf
      {
          class PopupMenuUI;
      }
    }
  }
}

class javax::swing::JPopupMenu : public ::javax::swing::JComponent
{

public:
  JPopupMenu();
  JPopupMenu(::java::lang::String *);
  virtual ::javax::swing::JMenuItem * add(::javax::swing::JMenuItem *);
  virtual ::javax::swing::JMenuItem * add(::java::lang::String *);
  virtual ::javax::swing::JMenuItem * add(::javax::swing::Action *);
  virtual void remove(jint);
  virtual void insert(::javax::swing::Action *, jint);
  virtual void insert(::java::awt::Component *, jint);
  static jboolean getDefaultLightWeightPopupEnabled();
  static void setDefaultLightWeightPopupEnabled(jboolean);
  virtual ::javax::swing::plaf::PopupMenuUI * getUI();
  virtual void setUI(::javax::swing::plaf::PopupMenuUI *);
  virtual void updateUI();
  virtual ::java::lang::String * getUIClassID();
  virtual ::javax::swing::SingleSelectionModel * getSelectionModel();
  virtual void setSelectionModel(::javax::swing::SingleSelectionModel *);
public: // actually protected
  virtual ::javax::swing::JMenuItem * createActionComponent(::javax::swing::Action *);
  virtual ::java::beans::PropertyChangeListener * createActionChangeListener(::javax::swing::JMenuItem *);
public:
  virtual jboolean isLightWeightPopupEnabled();
  virtual void setLightWeightPopupEnabled(jboolean);
  virtual ::java::lang::String * getLabel();
  virtual void setLabel(::java::lang::String *);
  virtual void addSeparator();
  virtual void addMenuKeyListener(::javax::swing::event::MenuKeyListener *);
  virtual void removeMenuKeyListener(::javax::swing::event::MenuKeyListener *);
  virtual JArray< ::javax::swing::event::MenuKeyListener * > * getMenuKeyListeners();
  virtual void addPopupMenuListener(::javax::swing::event::PopupMenuListener *);
  virtual void removePopupMenuListener(::javax::swing::event::PopupMenuListener *);
  virtual JArray< ::javax::swing::event::PopupMenuListener * > * getPopupMenuListeners();
public: // actually protected
  virtual void firePopupMenuWillBecomeVisible();
  virtual void firePopupMenuWillBecomeInvisible();
  virtual void firePopupMenuCanceled();
public:
  virtual void pack();
  virtual jboolean isVisible();
  virtual void setVisible(jboolean);
  virtual void setLocation(jint, jint);
  virtual ::java::awt::Component * getInvoker();
  virtual void setInvoker(::java::awt::Component *);
  virtual void show(::java::awt::Component *, jint, jint);
  virtual ::java::awt::Component * getComponentAtIndex(jint);
  virtual jint getComponentIndex(::java::awt::Component *);
  virtual void setPopupSize(::java::awt::Dimension *);
  virtual void setPopupSize(jint, jint);
  virtual void setSelected(::java::awt::Component *);
  virtual jboolean isBorderPainted();
  virtual void setBorderPainted(jboolean);
  virtual ::java::awt::Insets * getMargin();
public: // actually protected
  virtual ::java::lang::String * paramString();
public:
  virtual void processMouseEvent(::java::awt::event::MouseEvent *, JArray< ::javax::swing::MenuElement * > *, ::javax::swing::MenuSelectionManager *);
  virtual void processKeyEvent(::java::awt::event::KeyEvent *, JArray< ::javax::swing::MenuElement * > *, ::javax::swing::MenuSelectionManager *);
  virtual void menuSelectionChanged(jboolean);
  virtual JArray< ::javax::swing::MenuElement * > * getSubElements();
  virtual ::java::awt::Component * getComponent();
  virtual jboolean isPopupTrigger(::java::awt::event::MouseEvent *);
  virtual ::javax::accessibility::AccessibleContext * getAccessibleContext();
public: // actually package-private
  virtual jboolean onTop();
private:
  static const jlong serialVersionUID = -8336996630009646009LL;
  jboolean __attribute__((aligned(__alignof__( ::javax::swing::JComponent)))) borderPainted;
  static jboolean DefaultLightWeightPopupEnabled;
public: // actually package-private
  ::java::awt::Component * invoker;
private:
  ::java::lang::String * label;
  ::java::awt::Insets * margin;
  jboolean lightWeightPopupEnabled;
public: // actually protected
  ::javax::swing::SingleSelectionModel * selectionModel;
private:
  ::javax::swing::Popup * popup;
  jint popupLocationX;
  jint popupLocationY;
  jboolean visible;
public:
  static ::java::lang::Class class$;
};

#endif // __javax_swing_JPopupMenu__