Choice.h 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __java_awt_Choice__
  3. #define __java_awt_Choice__
  4. #pragma interface
  5. #include <java/awt/Component.h>
  6. #include <gcj/array.h>
  7. extern "Java"
  8. {
  9. namespace java
  10. {
  11. namespace awt
  12. {
  13. class AWTEvent;
  14. class Choice;
  15. namespace event
  16. {
  17. class ItemEvent;
  18. class ItemListener;
  19. }
  20. }
  21. }
  22. namespace javax
  23. {
  24. namespace accessibility
  25. {
  26. class AccessibleContext;
  27. }
  28. }
  29. }
  30. class java::awt::Choice : public ::java::awt::Component
  31. {
  32. public:
  33. Choice();
  34. virtual jint getItemCount();
  35. virtual jint countItems();
  36. virtual ::java::lang::String * getItem(jint);
  37. virtual void add(::java::lang::String *);
  38. virtual void addItem(::java::lang::String *);
  39. virtual void insert(::java::lang::String *, jint);
  40. virtual void remove(::java::lang::String *);
  41. virtual void remove(jint);
  42. virtual void removeAll();
  43. virtual ::java::lang::String * getSelectedItem();
  44. virtual JArray< ::java::lang::Object * > * getSelectedObjects();
  45. virtual jint getSelectedIndex();
  46. virtual void select(jint);
  47. virtual void select(::java::lang::String *);
  48. virtual void addNotify();
  49. virtual void addItemListener(::java::awt::event::ItemListener *);
  50. virtual void removeItemListener(::java::awt::event::ItemListener *);
  51. public: // actually protected
  52. virtual void processEvent(::java::awt::AWTEvent *);
  53. public: // actually package-private
  54. virtual void dispatchEventImpl(::java::awt::AWTEvent *);
  55. public: // actually protected
  56. virtual void processItemEvent(::java::awt::event::ItemEvent *);
  57. virtual ::java::lang::String * paramString();
  58. public:
  59. virtual JArray< ::java::util::EventListener * > * getListeners(::java::lang::Class *);
  60. virtual JArray< ::java::awt::event::ItemListener * > * getItemListeners();
  61. virtual ::javax::accessibility::AccessibleContext * getAccessibleContext();
  62. public: // actually package-private
  63. virtual ::java::lang::String * generateName();
  64. private:
  65. static jlong getUniqueLong();
  66. static jlong next_choice_number;
  67. static const jlong serialVersionUID = -4075310674757313071LL;
  68. public: // actually package-private
  69. ::java::util::Vector * __attribute__((aligned(__alignof__( ::java::awt::Component)))) pItems;
  70. private:
  71. jint selectedIndex;
  72. ::java::awt::event::ItemListener * item_listeners;
  73. public:
  74. static ::java::lang::Class class$;
  75. };
  76. #endif // __java_awt_Choice__