AbstractButton.h 8.8 KB

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