2013-06-18 Richard Biener <rguenther@suse.de>
[official-gcc.git] / libjava / javax / swing / DefaultButtonModel.h
blob735898ddb1c9ecfce852f47767b46efe03207c41
2 // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
4 #ifndef __javax_swing_DefaultButtonModel__
5 #define __javax_swing_DefaultButtonModel__
7 #pragma interface
9 #include <java/lang/Object.h>
10 #include <gcj/array.h>
12 extern "Java"
14 namespace java
16 namespace awt
18 namespace event
20 class ActionEvent;
21 class ActionListener;
22 class ItemEvent;
23 class ItemListener;
27 namespace javax
29 namespace swing
31 class ButtonGroup;
32 class DefaultButtonModel;
33 namespace event
35 class ChangeEvent;
36 class ChangeListener;
37 class EventListenerList;
43 class javax::swing::DefaultButtonModel : public ::java::lang::Object
46 public:
47 DefaultButtonModel();
48 virtual JArray< ::java::lang::Object * > * getSelectedObjects();
49 virtual JArray< ::java::util::EventListener * > * getListeners(::java::lang::Class *);
50 virtual void addActionListener(::java::awt::event::ActionListener *);
51 virtual void removeActionListener(::java::awt::event::ActionListener *);
52 virtual JArray< ::java::awt::event::ActionListener * > * getActionListeners();
53 virtual void addItemListener(::java::awt::event::ItemListener *);
54 virtual void removeItemListener(::java::awt::event::ItemListener *);
55 virtual JArray< ::java::awt::event::ItemListener * > * getItemListeners();
56 virtual void addChangeListener(::javax::swing::event::ChangeListener *);
57 virtual void removeChangeListener(::javax::swing::event::ChangeListener *);
58 virtual JArray< ::javax::swing::event::ChangeListener * > * getChangeListeners();
59 public: // actually protected
60 virtual void fireItemStateChanged(::java::awt::event::ItemEvent *);
61 virtual void fireActionPerformed(::java::awt::event::ActionEvent *);
62 virtual void fireStateChanged();
63 public:
64 virtual jboolean isArmed();
65 virtual void setArmed(jboolean);
66 virtual jboolean isEnabled();
67 virtual void setEnabled(jboolean);
68 virtual void setPressed(jboolean);
69 virtual jboolean isPressed();
70 virtual void setRollover(jboolean);
71 virtual void setSelected(jboolean);
72 virtual jboolean isSelected();
73 virtual jboolean isRollover();
74 virtual jint getMnemonic();
75 virtual void setMnemonic(jint);
76 virtual void setActionCommand(::java::lang::String *);
77 virtual ::java::lang::String * getActionCommand();
78 virtual void setGroup(::javax::swing::ButtonGroup *);
79 virtual ::javax::swing::ButtonGroup * getGroup();
80 private:
81 static const jlong serialVersionUID = -5342609566534980231LL;
82 public:
83 static const jint ARMED = 1;
84 static const jint ENABLED = 8;
85 static const jint PRESSED = 4;
86 static const jint ROLLOVER = 16;
87 static const jint SELECTED = 2;
88 public: // actually protected
89 jint __attribute__((aligned(__alignof__( ::java::lang::Object)))) stateMask;
90 ::javax::swing::event::EventListenerList * listenerList;
91 ::javax::swing::event::ChangeEvent * changeEvent;
92 ::javax::swing::ButtonGroup * group;
93 jint mnemonic;
94 ::java::lang::String * actionCommand;
95 public:
96 static ::java::lang::Class class$;
99 #endif // __javax_swing_DefaultButtonModel__