1 |
759 |
jeremybenn |
|
2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
3 |
|
|
|
4 |
|
|
#ifndef __javax_swing_plaf_basic_BasicComboPopup__
|
5 |
|
|
#define __javax_swing_plaf_basic_BasicComboPopup__
|
6 |
|
|
|
7 |
|
|
#pragma interface
|
8 |
|
|
|
9 |
|
|
#include <javax/swing/JPopupMenu.h>
|
10 |
|
|
extern "Java"
|
11 |
|
|
{
|
12 |
|
|
namespace java
|
13 |
|
|
{
|
14 |
|
|
namespace awt
|
15 |
|
|
{
|
16 |
|
|
class Rectangle;
|
17 |
|
|
namespace event
|
18 |
|
|
{
|
19 |
|
|
class ItemListener;
|
20 |
|
|
class KeyListener;
|
21 |
|
|
class MouseEvent;
|
22 |
|
|
class MouseListener;
|
23 |
|
|
class MouseMotionListener;
|
24 |
|
|
}
|
25 |
|
|
}
|
26 |
|
|
namespace beans
|
27 |
|
|
{
|
28 |
|
|
class PropertyChangeListener;
|
29 |
|
|
}
|
30 |
|
|
}
|
31 |
|
|
namespace javax
|
32 |
|
|
{
|
33 |
|
|
namespace swing
|
34 |
|
|
{
|
35 |
|
|
class ComboBoxModel;
|
36 |
|
|
class JComboBox;
|
37 |
|
|
class JList;
|
38 |
|
|
class JScrollPane;
|
39 |
|
|
class Timer;
|
40 |
|
|
namespace event
|
41 |
|
|
{
|
42 |
|
|
class ListDataListener;
|
43 |
|
|
class ListSelectionListener;
|
44 |
|
|
}
|
45 |
|
|
namespace plaf
|
46 |
|
|
{
|
47 |
|
|
namespace basic
|
48 |
|
|
{
|
49 |
|
|
class BasicComboPopup;
|
50 |
|
|
}
|
51 |
|
|
}
|
52 |
|
|
}
|
53 |
|
|
}
|
54 |
|
|
}
|
55 |
|
|
|
56 |
|
|
class javax::swing::plaf::basic::BasicComboPopup : public ::javax::swing::JPopupMenu
|
57 |
|
|
{
|
58 |
|
|
|
59 |
|
|
public:
|
60 |
|
|
BasicComboPopup(::javax::swing::JComboBox *);
|
61 |
|
|
virtual void show();
|
62 |
|
|
virtual void hide();
|
63 |
|
|
virtual ::javax::swing::JList * getList();
|
64 |
|
|
virtual ::java::awt::event::MouseListener * getMouseListener();
|
65 |
|
|
virtual ::java::awt::event::MouseMotionListener * getMouseMotionListener();
|
66 |
|
|
virtual ::java::awt::event::KeyListener * getKeyListener();
|
67 |
|
|
virtual void uninstallingUI();
|
68 |
|
|
public: // actually protected
|
69 |
|
|
virtual void uninstallComboBoxModelListeners(::javax::swing::ComboBoxModel *);
|
70 |
|
|
virtual void uninstallKeyboardActions();
|
71 |
|
|
virtual void firePopupMenuWillBecomeVisible();
|
72 |
|
|
virtual void firePopupMenuWillBecomeInvisible();
|
73 |
|
|
virtual void firePopupMenuCanceled();
|
74 |
|
|
virtual ::java::awt::event::MouseListener * createMouseListener();
|
75 |
|
|
virtual ::java::awt::event::MouseMotionListener * createMouseMotionListener();
|
76 |
|
|
virtual ::java::awt::event::KeyListener * createKeyListener();
|
77 |
|
|
virtual ::javax::swing::event::ListSelectionListener * createListSelectionListener();
|
78 |
|
|
virtual ::javax::swing::event::ListDataListener * createListDataListener();
|
79 |
|
|
virtual ::java::awt::event::MouseListener * createListMouseListener();
|
80 |
|
|
virtual ::java::awt::event::MouseMotionListener * createListMouseMotionListener();
|
81 |
|
|
virtual ::java::beans::PropertyChangeListener * createPropertyChangeListener();
|
82 |
|
|
virtual ::java::awt::event::ItemListener * createItemListener();
|
83 |
|
|
virtual ::javax::swing::JList * createList();
|
84 |
|
|
virtual void configureList();
|
85 |
|
|
virtual void installListListeners();
|
86 |
|
|
virtual ::javax::swing::JScrollPane * createScroller();
|
87 |
|
|
virtual void configureScroller();
|
88 |
|
|
virtual void configurePopup();
|
89 |
|
|
virtual void installComboBoxListeners();
|
90 |
|
|
virtual void installComboBoxModelListeners(::javax::swing::ComboBoxModel *);
|
91 |
|
|
virtual void installKeyboardActions();
|
92 |
|
|
public:
|
93 |
|
|
virtual jboolean isFocusTraversable();
|
94 |
|
|
public: // actually protected
|
95 |
|
|
virtual void startAutoScrolling(jint);
|
96 |
|
|
virtual void stopAutoScrolling();
|
97 |
|
|
virtual void autoScrollUp();
|
98 |
|
|
virtual void autoScrollDown();
|
99 |
|
|
virtual void delegateFocus(::java::awt::event::MouseEvent *);
|
100 |
|
|
virtual void togglePopup();
|
101 |
|
|
virtual ::java::awt::event::MouseEvent * convertMouseEvent(::java::awt::event::MouseEvent *);
|
102 |
|
|
virtual jint getPopupHeightForRowCount(jint);
|
103 |
|
|
virtual ::java::awt::Rectangle * computePopupBounds(jint, jint, jint, jint);
|
104 |
|
|
virtual void updateListBoxSelectionForEvent(::java::awt::event::MouseEvent *, jboolean);
|
105 |
|
|
private:
|
106 |
|
|
void uninstallListListeners();
|
107 |
|
|
public: // actually package-private
|
108 |
|
|
virtual void syncListSelection();
|
109 |
|
|
public: // actually protected
|
110 |
|
|
::javax::swing::Timer * __attribute__((aligned(__alignof__( ::javax::swing::JPopupMenu)))) autoscrollTimer;
|
111 |
|
|
::javax::swing::JComboBox * comboBox;
|
112 |
|
|
jboolean hasEntered;
|
113 |
|
|
jboolean isAutoScrolling;
|
114 |
|
|
::java::awt::event::ItemListener * itemListener;
|
115 |
|
|
::java::awt::event::KeyListener * keyListener;
|
116 |
|
|
::javax::swing::JList * list;
|
117 |
|
|
::javax::swing::event::ListDataListener * listDataListener;
|
118 |
|
|
::java::awt::event::MouseListener * listMouseListener;
|
119 |
|
|
::java::awt::event::MouseMotionListener * listMouseMotionListener;
|
120 |
|
|
::javax::swing::event::ListSelectionListener * listSelectionListener;
|
121 |
|
|
::java::awt::event::MouseListener * mouseListener;
|
122 |
|
|
::java::awt::event::MouseMotionListener * mouseMotionListener;
|
123 |
|
|
::java::beans::PropertyChangeListener * propertyChangeListener;
|
124 |
|
|
static const jint SCROLL_DOWN = 1;
|
125 |
|
|
static const jint SCROLL_UP = 0;
|
126 |
|
|
jint scrollDirection;
|
127 |
|
|
::javax::swing::JScrollPane * scroller;
|
128 |
|
|
jboolean valueIsAdjusting;
|
129 |
|
|
public:
|
130 |
|
|
static ::java::lang::Class class$;
|
131 |
|
|
};
|
132 |
|
|
|
133 |
|
|
#endif // __javax_swing_plaf_basic_BasicComboPopup__
|