2 // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
4 #ifndef __javax_swing_DefaultButtonModel__
5 #define __javax_swing_DefaultButtonModel__
9 #include <java/lang/Object.h>
10 #include <gcj/array.h>
32 class DefaultButtonModel
;
37 class EventListenerList
;
43 class javax::swing::DefaultButtonModel
: public ::java::lang::Object
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();
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();
81 static const jlong serialVersionUID
= -5342609566534980231LL;
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
;
94 ::java::lang::String
* actionCommand
;
96 static ::java::lang::Class
class$
;
99 #endif // __javax_swing_DefaultButtonModel__