List.h 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __java_awt_List__
  3. #define __java_awt_List__
  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 Dimension;
  15. class List;
  16. namespace event
  17. {
  18. class ActionEvent;
  19. class ActionListener;
  20. class ItemEvent;
  21. class ItemListener;
  22. }
  23. }
  24. }
  25. namespace javax
  26. {
  27. namespace accessibility
  28. {
  29. class AccessibleContext;
  30. }
  31. }
  32. }
  33. class java::awt::List : public ::java::awt::Component
  34. {
  35. public:
  36. List();
  37. List(jint);
  38. List(jint, jboolean);
  39. virtual jint getItemCount();
  40. virtual jint countItems();
  41. virtual JArray< ::java::lang::String * > * getItems();
  42. virtual ::java::lang::String * getItem(jint);
  43. virtual jint getRows();
  44. virtual jboolean isMultipleMode();
  45. virtual jboolean allowsMultipleSelections();
  46. virtual void setMultipleMode(jboolean);
  47. virtual void setMultipleSelections(jboolean);
  48. virtual ::java::awt::Dimension * getMinimumSize();
  49. virtual ::java::awt::Dimension * minimumSize();
  50. virtual ::java::awt::Dimension * getMinimumSize(jint);
  51. virtual ::java::awt::Dimension * minimumSize(jint);
  52. virtual ::java::awt::Dimension * getPreferredSize();
  53. virtual ::java::awt::Dimension * preferredSize();
  54. virtual ::java::awt::Dimension * getPreferredSize(jint);
  55. virtual ::java::awt::Dimension * preferredSize(jint);
  56. virtual void add(::java::lang::String *);
  57. virtual void addItem(::java::lang::String *);
  58. virtual void add(::java::lang::String *, jint);
  59. virtual void addItem(::java::lang::String *, jint);
  60. virtual void delItem(jint);
  61. virtual void remove(jint);
  62. virtual void delItems(jint, jint);
  63. virtual void remove(::java::lang::String *);
  64. virtual void removeAll();
  65. virtual void clear();
  66. virtual void replaceItem(::java::lang::String *, jint);
  67. virtual jint getSelectedIndex();
  68. virtual JArray< jint > * getSelectedIndexes();
  69. virtual ::java::lang::String * getSelectedItem();
  70. virtual JArray< ::java::lang::String * > * getSelectedItems();
  71. virtual JArray< ::java::lang::Object * > * getSelectedObjects();
  72. virtual jboolean isIndexSelected(jint);
  73. virtual jboolean isSelected(jint);
  74. virtual void makeVisible(jint);
  75. virtual jint getVisibleIndex();
  76. virtual void select(jint);
  77. virtual void deselect(jint);
  78. virtual void addNotify();
  79. virtual void removeNotify();
  80. virtual void addActionListener(::java::awt::event::ActionListener *);
  81. virtual void removeActionListener(::java::awt::event::ActionListener *);
  82. virtual void addItemListener(::java::awt::event::ItemListener *);
  83. virtual void removeItemListener(::java::awt::event::ItemListener *);
  84. public: // actually protected
  85. virtual void processEvent(::java::awt::AWTEvent *);
  86. virtual void processActionEvent(::java::awt::event::ActionEvent *);
  87. virtual void processItemEvent(::java::awt::event::ItemEvent *);
  88. public: // actually package-private
  89. virtual void dispatchEventImpl(::java::awt::AWTEvent *);
  90. public: // actually protected
  91. virtual ::java::lang::String * paramString();
  92. public:
  93. virtual JArray< ::java::util::EventListener * > * getListeners(::java::lang::Class *);
  94. virtual JArray< ::java::awt::event::ActionListener * > * getActionListeners();
  95. virtual JArray< ::java::awt::event::ItemListener * > * getItemListeners();
  96. virtual ::javax::accessibility::AccessibleContext * getAccessibleContext();
  97. public: // actually package-private
  98. virtual ::java::lang::String * generateName();
  99. private:
  100. static jlong getUniqueLong();
  101. static jlong next_list_number;
  102. static const jlong serialVersionUID = -3304312411574666869LL;
  103. ::java::util::Vector * __attribute__((aligned(__alignof__( ::java::awt::Component)))) items;
  104. jboolean multipleMode;
  105. jint rows;
  106. JArray< jint > * selected;
  107. jint visibleIndex;
  108. ::java::awt::event::ItemListener * item_listeners;
  109. ::java::awt::event::ActionListener * action_listeners;
  110. public:
  111. static ::java::lang::Class class$;
  112. };
  113. #endif // __java_awt_List__