JComboBox.h 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __javax_swing_JComboBox__
  3. #define __javax_swing_JComboBox__
  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. namespace event
  14. {
  15. class ActionEvent;
  16. class ActionListener;
  17. class ItemEvent;
  18. class ItemListener;
  19. class KeyEvent;
  20. }
  21. }
  22. namespace beans
  23. {
  24. class PropertyChangeListener;
  25. }
  26. }
  27. namespace javax
  28. {
  29. namespace accessibility
  30. {
  31. class AccessibleContext;
  32. }
  33. namespace swing
  34. {
  35. class Action;
  36. class ComboBoxEditor;
  37. class ComboBoxModel;
  38. class JComboBox;
  39. class JComboBox$KeySelectionManager;
  40. class ListCellRenderer;
  41. namespace event
  42. {
  43. class ListDataEvent;
  44. class PopupMenuListener;
  45. }
  46. namespace plaf
  47. {
  48. class ComboBoxUI;
  49. }
  50. }
  51. }
  52. }
  53. class javax::swing::JComboBox : public ::javax::swing::JComponent
  54. {
  55. public:
  56. JComboBox(::javax::swing::ComboBoxModel *);
  57. JComboBox(JArray< ::java::lang::Object * > *);
  58. JComboBox(::java::util::Vector *);
  59. JComboBox();
  60. virtual jboolean isEditable();
  61. public: // actually protected
  62. virtual void installAncestorListener();
  63. public:
  64. virtual void setUI(::javax::swing::plaf::ComboBoxUI *);
  65. virtual void updateUI();
  66. virtual ::java::lang::String * getUIClassID();
  67. virtual ::javax::swing::plaf::ComboBoxUI * getUI();
  68. virtual void setModel(::javax::swing::ComboBoxModel *);
  69. virtual ::javax::swing::ComboBoxModel * getModel();
  70. virtual void setLightWeightPopupEnabled(jboolean);
  71. virtual jboolean isLightWeightPopupEnabled();
  72. virtual void setEditable(jboolean);
  73. virtual void setMaximumRowCount(jint);
  74. virtual jint getMaximumRowCount();
  75. virtual void setRenderer(::javax::swing::ListCellRenderer *);
  76. virtual ::javax::swing::ListCellRenderer * getRenderer();
  77. virtual void setEditor(::javax::swing::ComboBoxEditor *);
  78. virtual ::javax::swing::ComboBoxEditor * getEditor();
  79. virtual void setSelectedItem(::java::lang::Object *);
  80. virtual ::java::lang::Object * getSelectedItem();
  81. virtual void setSelectedIndex(jint);
  82. virtual jint getSelectedIndex();
  83. virtual ::java::lang::Object * getPrototypeDisplayValue();
  84. virtual void setPrototypeDisplayValue(::java::lang::Object *);
  85. virtual void addItem(::java::lang::Object *);
  86. virtual void insertItemAt(::java::lang::Object *, jint);
  87. virtual void removeItem(::java::lang::Object *);
  88. virtual void removeItemAt(jint);
  89. virtual void removeAllItems();
  90. virtual void showPopup();
  91. virtual void hidePopup();
  92. virtual void setPopupVisible(jboolean);
  93. virtual jboolean isPopupVisible();
  94. virtual void setActionCommand(::java::lang::String *);
  95. virtual ::java::lang::String * getActionCommand();
  96. virtual void setAction(::javax::swing::Action *);
  97. virtual ::javax::swing::Action * getAction();
  98. public: // actually protected
  99. virtual void configurePropertiesFromAction(::javax::swing::Action *);
  100. virtual ::java::beans::PropertyChangeListener * createActionPropertyChangeListener(::javax::swing::Action *);
  101. virtual void fireItemStateChanged(::java::awt::event::ItemEvent *);
  102. virtual void fireActionEvent();
  103. public:
  104. virtual void firePopupMenuCanceled();
  105. virtual void firePopupMenuWillBecomeInvisible();
  106. virtual void firePopupMenuWillBecomeVisible();
  107. public: // actually protected
  108. virtual void selectedItemChanged();
  109. public:
  110. virtual JArray< ::java::lang::Object * > * getSelectedObjects();
  111. virtual void actionPerformed(::java::awt::event::ActionEvent *);
  112. virtual jboolean selectWithKeyChar(jchar);
  113. virtual void intervalAdded(::javax::swing::event::ListDataEvent *);
  114. virtual void intervalRemoved(::javax::swing::event::ListDataEvent *);
  115. virtual void contentsChanged(::javax::swing::event::ListDataEvent *);
  116. virtual void setEnabled(jboolean);
  117. virtual void configureEditor(::javax::swing::ComboBoxEditor *, ::java::lang::Object *);
  118. virtual void processKeyEvent(::java::awt::event::KeyEvent *);
  119. virtual void setKeySelectionManager(::javax::swing::JComboBox$KeySelectionManager *);
  120. virtual ::javax::swing::JComboBox$KeySelectionManager * getKeySelectionManager();
  121. virtual jint getItemCount();
  122. virtual ::java::lang::Object * getItemAt(jint);
  123. public: // actually protected
  124. virtual ::javax::swing::JComboBox$KeySelectionManager * createDefaultKeySelectionManager();
  125. virtual ::java::lang::String * paramString();
  126. public:
  127. virtual ::javax::accessibility::AccessibleContext * getAccessibleContext();
  128. virtual void addActionListener(::java::awt::event::ActionListener *);
  129. virtual void removeActionListener(::java::awt::event::ActionListener *);
  130. virtual JArray< ::java::awt::event::ActionListener * > * getActionListeners();
  131. virtual void addItemListener(::java::awt::event::ItemListener *);
  132. virtual void removeItemListener(::java::awt::event::ItemListener *);
  133. virtual JArray< ::java::awt::event::ItemListener * > * getItemListeners();
  134. virtual void addPopupMenuListener(::javax::swing::event::PopupMenuListener *);
  135. virtual void removePopupMenuListener(::javax::swing::event::PopupMenuListener *);
  136. virtual JArray< ::javax::swing::event::PopupMenuListener * > * getPopupMenuListeners();
  137. private:
  138. static const jlong serialVersionUID = 5654585963292734470LL;
  139. static const jint DEFAULT_MAXIMUM_ROW_COUNT = 8;
  140. public: // actually protected
  141. ::javax::swing::ComboBoxModel * __attribute__((aligned(__alignof__( ::javax::swing::JComponent)))) dataModel;
  142. ::javax::swing::ListCellRenderer * renderer;
  143. ::javax::swing::ComboBoxEditor * editor;
  144. jint maximumRowCount;
  145. jboolean isEditable__;
  146. ::java::lang::Object * selectedItemReminder;
  147. ::javax::swing::JComboBox$KeySelectionManager * keySelectionManager;
  148. ::java::lang::String * actionCommand;
  149. jboolean lightWeightPopupEnabled;
  150. private:
  151. ::javax::swing::Action * action;
  152. ::java::lang::Object * prototypeDisplayValue;
  153. public:
  154. static ::java::lang::Class class$;
  155. };
  156. #endif // __javax_swing_JComboBox__