1 |
759 |
jeremybenn |
|
2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
3 |
|
|
|
4 |
|
|
#ifndef __javax_swing_AbstractButton__
|
5 |
|
|
#define __javax_swing_AbstractButton__
|
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 Image;
|
21 |
|
|
class Insets;
|
22 |
|
|
class LayoutManager;
|
23 |
|
|
namespace event
|
24 |
|
|
{
|
25 |
|
|
class ActionEvent;
|
26 |
|
|
class ActionListener;
|
27 |
|
|
class ItemEvent;
|
28 |
|
|
class ItemListener;
|
29 |
|
|
}
|
30 |
|
|
}
|
31 |
|
|
namespace beans
|
32 |
|
|
{
|
33 |
|
|
class PropertyChangeListener;
|
34 |
|
|
}
|
35 |
|
|
}
|
36 |
|
|
namespace javax
|
37 |
|
|
{
|
38 |
|
|
namespace swing
|
39 |
|
|
{
|
40 |
|
|
class AbstractButton;
|
41 |
|
|
class AbstractButton$EventHandler;
|
42 |
|
|
class Action;
|
43 |
|
|
class ButtonModel;
|
44 |
|
|
class Icon;
|
45 |
|
|
namespace event
|
46 |
|
|
{
|
47 |
|
|
class ChangeEvent;
|
48 |
|
|
class ChangeListener;
|
49 |
|
|
}
|
50 |
|
|
namespace plaf
|
51 |
|
|
{
|
52 |
|
|
class ButtonUI;
|
53 |
|
|
}
|
54 |
|
|
}
|
55 |
|
|
}
|
56 |
|
|
}
|
57 |
|
|
|
58 |
|
|
class javax::swing::AbstractButton : public ::javax::swing::JComponent
|
59 |
|
|
{
|
60 |
|
|
|
61 |
|
|
public:
|
62 |
|
|
AbstractButton();
|
63 |
|
|
virtual ::javax::swing::ButtonModel * getModel();
|
64 |
|
|
virtual void setModel(::javax::swing::ButtonModel *);
|
65 |
|
|
public: // actually protected
|
66 |
|
|
virtual void init(::java::lang::String *, ::javax::swing::Icon *);
|
67 |
|
|
public:
|
68 |
|
|
virtual ::java::lang::String * getActionCommand();
|
69 |
|
|
virtual void setActionCommand(::java::lang::String *);
|
70 |
|
|
virtual void addActionListener(::java::awt::event::ActionListener *);
|
71 |
|
|
virtual void removeActionListener(::java::awt::event::ActionListener *);
|
72 |
|
|
virtual JArray< ::java::awt::event::ActionListener * > * getActionListeners();
|
73 |
|
|
virtual void addItemListener(::java::awt::event::ItemListener *);
|
74 |
|
|
virtual void removeItemListener(::java::awt::event::ItemListener *);
|
75 |
|
|
virtual JArray< ::java::awt::event::ItemListener * > * getItemListeners();
|
76 |
|
|
virtual void addChangeListener(::javax::swing::event::ChangeListener *);
|
77 |
|
|
virtual void removeChangeListener(::javax::swing::event::ChangeListener *);
|
78 |
|
|
virtual JArray< ::javax::swing::event::ChangeListener * > * getChangeListeners();
|
79 |
|
|
public: // actually protected
|
80 |
|
|
virtual void fireItemStateChanged(::java::awt::event::ItemEvent *);
|
81 |
|
|
virtual void fireActionPerformed(::java::awt::event::ActionEvent *);
|
82 |
|
|
virtual void fireStateChanged();
|
83 |
|
|
public:
|
84 |
|
|
virtual jint getMnemonic();
|
85 |
|
|
virtual void setMnemonic(jchar);
|
86 |
|
|
virtual void setMnemonic(jint);
|
87 |
|
|
virtual void setDisplayedMnemonicIndex(jint);
|
88 |
|
|
virtual jint getDisplayedMnemonicIndex();
|
89 |
|
|
virtual void setRolloverEnabled(jboolean);
|
90 |
|
|
virtual jboolean isRolloverEnabled();
|
91 |
|
|
virtual void setSelected(jboolean);
|
92 |
|
|
virtual jboolean isSelected();
|
93 |
|
|
virtual void setEnabled(jboolean);
|
94 |
|
|
virtual jint getHorizontalAlignment();
|
95 |
|
|
virtual void setHorizontalAlignment(jint);
|
96 |
|
|
virtual jint getHorizontalTextPosition();
|
97 |
|
|
virtual void setHorizontalTextPosition(jint);
|
98 |
|
|
virtual jint getVerticalAlignment();
|
99 |
|
|
virtual void setVerticalAlignment(jint);
|
100 |
|
|
virtual jint getVerticalTextPosition();
|
101 |
|
|
virtual void setVerticalTextPosition(jint);
|
102 |
|
|
virtual jboolean isBorderPainted();
|
103 |
|
|
virtual void setBorderPainted(jboolean);
|
104 |
|
|
virtual ::javax::swing::Action * getAction();
|
105 |
|
|
virtual void setAction(::javax::swing::Action *);
|
106 |
|
|
virtual ::javax::swing::Icon * getIcon();
|
107 |
|
|
virtual void setIcon(::javax::swing::Icon *);
|
108 |
|
|
virtual ::java::lang::String * getText();
|
109 |
|
|
virtual void setLabel(::java::lang::String *);
|
110 |
|
|
virtual ::java::lang::String * getLabel();
|
111 |
|
|
virtual void setText(::java::lang::String *);
|
112 |
|
|
virtual void setIconTextGap(jint);
|
113 |
|
|
virtual jint getIconTextGap();
|
114 |
|
|
virtual ::java::awt::Insets * getMargin();
|
115 |
|
|
virtual void setMargin(::java::awt::Insets *);
|
116 |
|
|
virtual ::javax::swing::Icon * getPressedIcon();
|
117 |
|
|
virtual void setPressedIcon(::javax::swing::Icon *);
|
118 |
|
|
virtual ::javax::swing::Icon * getDisabledIcon();
|
119 |
|
|
virtual void setDisabledIcon(::javax::swing::Icon *);
|
120 |
|
|
virtual jboolean isFocusPainted();
|
121 |
|
|
virtual void setFocusPainted(jboolean);
|
122 |
|
|
public: // actually protected
|
123 |
|
|
virtual jint checkHorizontalKey(jint, ::java::lang::String *);
|
124 |
|
|
virtual jint checkVerticalKey(jint, ::java::lang::String *);
|
125 |
|
|
virtual void configurePropertiesFromAction(::javax::swing::Action *);
|
126 |
|
|
virtual ::java::awt::event::ActionListener * createActionListener();
|
127 |
|
|
virtual ::java::beans::PropertyChangeListener * createActionPropertyChangeListener(::javax::swing::Action *);
|
128 |
|
|
virtual ::javax::swing::event::ChangeListener * createChangeListener();
|
129 |
|
|
virtual ::java::awt::event::ItemListener * createItemListener();
|
130 |
|
|
public:
|
131 |
|
|
virtual void doClick();
|
132 |
|
|
virtual void doClick(jint);
|
133 |
|
|
virtual ::javax::swing::Icon * getDisabledSelectedIcon();
|
134 |
|
|
virtual void setDisabledSelectedIcon(::javax::swing::Icon *);
|
135 |
|
|
virtual ::javax::swing::Icon * getRolloverIcon();
|
136 |
|
|
virtual void setRolloverIcon(::javax::swing::Icon *);
|
137 |
|
|
virtual ::javax::swing::Icon * getRolloverSelectedIcon();
|
138 |
|
|
virtual void setRolloverSelectedIcon(::javax::swing::Icon *);
|
139 |
|
|
virtual ::javax::swing::Icon * getSelectedIcon();
|
140 |
|
|
virtual void setSelectedIcon(::javax::swing::Icon *);
|
141 |
|
|
virtual JArray< ::java::lang::Object * > * getSelectedObjects();
|
142 |
|
|
virtual jboolean imageUpdate(::java::awt::Image *, jint, jint, jint, jint, jint);
|
143 |
|
|
virtual jboolean isContentAreaFilled();
|
144 |
|
|
virtual void setContentAreaFilled(jboolean);
|
145 |
|
|
public: // actually protected
|
146 |
|
|
virtual void paintBorder(::java::awt::Graphics *);
|
147 |
|
|
virtual ::java::lang::String * paramString();
|
148 |
|
|
public:
|
149 |
|
|
virtual void setUI(::javax::swing::plaf::ButtonUI *);
|
150 |
|
|
virtual ::javax::swing::plaf::ButtonUI * getUI();
|
151 |
|
|
virtual void updateUI();
|
152 |
|
|
virtual jlong getMultiClickThreshhold();
|
153 |
|
|
virtual void setMultiClickThreshhold(jlong);
|
154 |
|
|
public: // actually protected
|
155 |
|
|
virtual void addImpl(::java::awt::Component *, ::java::lang::Object *, jint);
|
156 |
|
|
public:
|
157 |
|
|
virtual void setLayout(::java::awt::LayoutManager *);
|
158 |
|
|
public: // actually package-private
|
159 |
|
|
virtual void setUIProperty(::java::lang::String *, ::java::lang::Object *);
|
160 |
|
|
virtual ::javax::swing::AbstractButton$EventHandler * getEventHandler();
|
161 |
|
|
private:
|
162 |
|
|
static const jlong serialVersionUID = -937921345538462020LL;
|
163 |
|
|
public: // actually package-private
|
164 |
|
|
::javax::swing::Icon * __attribute__((aligned(__alignof__( ::javax::swing::JComponent)))) default_icon;
|
165 |
|
|
::javax::swing::Icon * pressed_icon;
|
166 |
|
|
::javax::swing::Icon * disabledIcon;
|
167 |
|
|
::javax::swing::Icon * selectedIcon;
|
168 |
|
|
::javax::swing::Icon * disabledSelectedIcon;
|
169 |
|
|
::javax::swing::Icon * rolloverIcon;
|
170 |
|
|
::javax::swing::Icon * rolloverSelectedIcon;
|
171 |
|
|
::javax::swing::Icon * current_icon;
|
172 |
|
|
::java::lang::String * text;
|
173 |
|
|
jint iconTextGap;
|
174 |
|
|
jint verticalAlignment;
|
175 |
|
|
jint horizontalAlignment;
|
176 |
|
|
jint horizontalTextPosition;
|
177 |
|
|
jint verticalTextPosition;
|
178 |
|
|
jboolean borderPainted;
|
179 |
|
|
jboolean focusPainted;
|
180 |
|
|
jboolean contentAreaFilled;
|
181 |
|
|
jboolean rollOverEnabled;
|
182 |
|
|
::javax::swing::Action * action;
|
183 |
|
|
public: // actually protected
|
184 |
|
|
::javax::swing::ButtonModel * model;
|
185 |
|
|
public: // actually package-private
|
186 |
|
|
::java::awt::Insets * margin;
|
187 |
|
|
jint mnemonicIndex;
|
188 |
|
|
public: // actually protected
|
189 |
|
|
::java::awt::event::ActionListener * actionListener;
|
190 |
|
|
::java::awt::event::ItemListener * itemListener;
|
191 |
|
|
::javax::swing::event::ChangeListener * changeListener;
|
192 |
|
|
private:
|
193 |
|
|
::javax::swing::AbstractButton$EventHandler * eventHandler;
|
194 |
|
|
public: // actually package-private
|
195 |
|
|
jlong multiClickThreshhold;
|
196 |
|
|
::java::beans::PropertyChangeListener * actionPropertyChangeListener;
|
197 |
|
|
public: // actually protected
|
198 |
|
|
::javax::swing::event::ChangeEvent * changeEvent;
|
199 |
|
|
private:
|
200 |
|
|
jboolean clientBorderPaintedSet;
|
201 |
|
|
jboolean clientRolloverEnabledSet;
|
202 |
|
|
jboolean clientIconTextGapSet;
|
203 |
|
|
jboolean clientContentAreaFilledSet;
|
204 |
|
|
public:
|
205 |
|
|
static ::java::lang::String * BORDER_PAINTED_CHANGED_PROPERTY;
|
206 |
|
|
static ::java::lang::String * CONTENT_AREA_FILLED_CHANGED_PROPERTY;
|
207 |
|
|
static ::java::lang::String * DISABLED_ICON_CHANGED_PROPERTY;
|
208 |
|
|
static ::java::lang::String * DISABLED_SELECTED_ICON_CHANGED_PROPERTY;
|
209 |
|
|
static ::java::lang::String * FOCUS_PAINTED_CHANGED_PROPERTY;
|
210 |
|
|
static ::java::lang::String * HORIZONTAL_ALIGNMENT_CHANGED_PROPERTY;
|
211 |
|
|
static ::java::lang::String * HORIZONTAL_TEXT_POSITION_CHANGED_PROPERTY;
|
212 |
|
|
static ::java::lang::String * ICON_CHANGED_PROPERTY;
|
213 |
|
|
static ::java::lang::String * MARGIN_CHANGED_PROPERTY;
|
214 |
|
|
static ::java::lang::String * MNEMONIC_CHANGED_PROPERTY;
|
215 |
|
|
static ::java::lang::String * MODEL_CHANGED_PROPERTY;
|
216 |
|
|
static ::java::lang::String * PRESSED_ICON_CHANGED_PROPERTY;
|
217 |
|
|
static ::java::lang::String * ROLLOVER_ENABLED_CHANGED_PROPERTY;
|
218 |
|
|
static ::java::lang::String * ROLLOVER_ICON_CHANGED_PROPERTY;
|
219 |
|
|
static ::java::lang::String * ROLLOVER_SELECTED_ICON_CHANGED_PROPERTY;
|
220 |
|
|
static ::java::lang::String * SELECTED_ICON_CHANGED_PROPERTY;
|
221 |
|
|
static ::java::lang::String * TEXT_CHANGED_PROPERTY;
|
222 |
|
|
static ::java::lang::String * VERTICAL_ALIGNMENT_CHANGED_PROPERTY;
|
223 |
|
|
static ::java::lang::String * VERTICAL_TEXT_POSITION_CHANGED_PROPERTY;
|
224 |
|
|
static ::java::lang::Class class$;
|
225 |
|
|
};
|
226 |
|
|
|
227 |
|
|
#endif // __javax_swing_AbstractButton__
|