summaryrefslogtreecommitdiff
path: root/libjava/javax/swing/DefaultButtonModel.h
blob: 735898ddb1c9ecfce852f47767b46efe03207c41 (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
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __javax_swing_DefaultButtonModel__
#define __javax_swing_DefaultButtonModel__

#pragma interface

#include <java/lang/Object.h>
#include <gcj/array.h>

extern "Java"
{
  namespace java
  {
    namespace awt
    {
      namespace event
      {
          class ActionEvent;
          class ActionListener;
          class ItemEvent;
          class ItemListener;
      }
    }
  }
  namespace javax
  {
    namespace swing
    {
        class ButtonGroup;
        class DefaultButtonModel;
      namespace event
      {
          class ChangeEvent;
          class ChangeListener;
          class EventListenerList;
      }
    }
  }
}

class javax::swing::DefaultButtonModel : public ::java::lang::Object
{

public:
  DefaultButtonModel();
  virtual JArray< ::java::lang::Object * > * getSelectedObjects();
  virtual JArray< ::java::util::EventListener * > * getListeners(::java::lang::Class *);
  virtual void addActionListener(::java::awt::event::ActionListener *);
  virtual void removeActionListener(::java::awt::event::ActionListener *);
  virtual JArray< ::java::awt::event::ActionListener * > * getActionListeners();
  virtual void addItemListener(::java::awt::event::ItemListener *);
  virtual void removeItemListener(::java::awt::event::ItemListener *);
  virtual JArray< ::java::awt::event::ItemListener * > * getItemListeners();
  virtual void addChangeListener(::javax::swing::event::ChangeListener *);
  virtual void removeChangeListener(::javax::swing::event::ChangeListener *);
  virtual JArray< ::javax::swing::event::ChangeListener * > * getChangeListeners();
public: // actually protected
  virtual void fireItemStateChanged(::java::awt::event::ItemEvent *);
  virtual void fireActionPerformed(::java::awt::event::ActionEvent *);
  virtual void fireStateChanged();
public:
  virtual jboolean isArmed();
  virtual void setArmed(jboolean);
  virtual jboolean isEnabled();
  virtual void setEnabled(jboolean);
  virtual void setPressed(jboolean);
  virtual jboolean isPressed();
  virtual void setRollover(jboolean);
  virtual void setSelected(jboolean);
  virtual jboolean isSelected();
  virtual jboolean isRollover();
  virtual jint getMnemonic();
  virtual void setMnemonic(jint);
  virtual void setActionCommand(::java::lang::String *);
  virtual ::java::lang::String * getActionCommand();
  virtual void setGroup(::javax::swing::ButtonGroup *);
  virtual ::javax::swing::ButtonGroup * getGroup();
private:
  static const jlong serialVersionUID = -5342609566534980231LL;
public:
  static const jint ARMED = 1;
  static const jint ENABLED = 8;
  static const jint PRESSED = 4;
  static const jint ROLLOVER = 16;
  static const jint SELECTED = 2;
public: // actually protected
  jint __attribute__((aligned(__alignof__( ::java::lang::Object)))) stateMask;
  ::javax::swing::event::EventListenerList * listenerList;
  ::javax::swing::event::ChangeEvent * changeEvent;
  ::javax::swing::ButtonGroup * group;
  jint mnemonic;
  ::java::lang::String * actionCommand;
public:
  static ::java::lang::Class class$;
};

#endif // __javax_swing_DefaultButtonModel__