DefaultListSelectionModel.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __javax_swing_DefaultListSelectionModel__
  3. #define __javax_swing_DefaultListSelectionModel__
  4. #pragma interface
  5. #include <java/lang/Object.h>
  6. #include <gcj/array.h>
  7. extern "Java"
  8. {
  9. namespace javax
  10. {
  11. namespace swing
  12. {
  13. class DefaultListSelectionModel;
  14. namespace event
  15. {
  16. class EventListenerList;
  17. class ListSelectionListener;
  18. }
  19. }
  20. }
  21. }
  22. class javax::swing::DefaultListSelectionModel : public ::java::lang::Object
  23. {
  24. public:
  25. DefaultListSelectionModel();
  26. virtual jint getSelectionMode();
  27. virtual void setSelectionMode(jint);
  28. virtual jint getAnchorSelectionIndex();
  29. virtual void setAnchorSelectionIndex(jint);
  30. virtual jint getLeadSelectionIndex();
  31. virtual void setLeadSelectionIndex(jint);
  32. virtual void moveLeadSelectionIndex(jint);
  33. virtual jboolean isLeadAnchorNotificationEnabled();
  34. virtual void setLeadAnchorNotificationEnabled(jboolean);
  35. virtual jboolean getValueIsAdjusting();
  36. virtual void setValueIsAdjusting(jboolean);
  37. virtual jboolean isSelectionEmpty();
  38. virtual jint getMinSelectionIndex();
  39. virtual jint getMaxSelectionIndex();
  40. virtual jboolean isSelectedIndex(jint);
  41. virtual void addSelectionInterval(jint, jint);
  42. virtual void removeSelectionInterval(jint, jint);
  43. virtual void clearSelection();
  44. private:
  45. void fireDifference(::java::util::BitSet *, ::java::util::BitSet *);
  46. public:
  47. virtual void setSelectionInterval(jint, jint);
  48. virtual void insertIndexInterval(jint, jint, jboolean);
  49. virtual void removeIndexInterval(jint, jint);
  50. public: // actually protected
  51. virtual void fireValueChanged(jboolean);
  52. virtual void fireValueChanged(jint, jint);
  53. virtual void fireValueChanged(jint, jint, jboolean);
  54. public:
  55. virtual void addListSelectionListener(::javax::swing::event::ListSelectionListener *);
  56. virtual void removeListSelectionListener(::javax::swing::event::ListSelectionListener *);
  57. virtual JArray< ::java::util::EventListener * > * getListeners(::java::lang::Class *);
  58. virtual JArray< ::javax::swing::event::ListSelectionListener * > * getListSelectionListeners();
  59. virtual ::java::lang::Object * clone();
  60. private:
  61. static const jlong serialVersionUID = -5718799865110415860LL;
  62. public: // actually protected
  63. ::javax::swing::event::EventListenerList * __attribute__((aligned(__alignof__( ::java::lang::Object)))) listenerList;
  64. public: // actually package-private
  65. jint selectionMode;
  66. jint leadSelectionIndex;
  67. jint anchorSelectionIndex;
  68. public: // actually protected
  69. jboolean leadAnchorNotificationEnabled;
  70. public: // actually package-private
  71. jboolean valueIsAdjusting;
  72. ::java::util::BitSet * sel;
  73. ::java::lang::Object * oldSel;
  74. jboolean setLeadCalledFromAdd;
  75. public:
  76. static ::java::lang::Class class$;
  77. };
  78. #endif // __javax_swing_DefaultListSelectionModel__