Timer.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __javax_swing_Timer__
  3. #define __javax_swing_Timer__
  4. #pragma interface
  5. #include <java/lang/Object.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. }
  18. }
  19. }
  20. namespace javax
  21. {
  22. namespace swing
  23. {
  24. class Timer;
  25. class Timer$Task;
  26. namespace event
  27. {
  28. class EventListenerList;
  29. }
  30. }
  31. }
  32. }
  33. class javax::swing::Timer : public ::java::lang::Object
  34. {
  35. public:
  36. Timer(jint, ::java::awt::event::ActionListener *);
  37. virtual JArray< ::java::awt::event::ActionListener * > * getActionListeners();
  38. virtual void setCoalesce(jboolean);
  39. virtual jboolean isCoalesce();
  40. virtual JArray< ::java::util::EventListener * > * getListeners(::java::lang::Class *);
  41. static void setLogTimers(jboolean);
  42. static jboolean getLogTimers();
  43. virtual void setDelay(jint);
  44. virtual jint getDelay();
  45. virtual void setInitialDelay(jint);
  46. virtual jint getInitialDelay();
  47. virtual void setRepeats(jboolean);
  48. virtual jboolean isRepeats();
  49. virtual jboolean isRunning();
  50. virtual void addActionListener(::java::awt::event::ActionListener *);
  51. virtual void removeActionListener(::java::awt::event::ActionListener *);
  52. virtual void restart();
  53. virtual void start();
  54. virtual void stop();
  55. public: // actually protected
  56. virtual void fireActionPerformed(::java::awt::event::ActionEvent *);
  57. public: // actually package-private
  58. virtual void fireActionPerformed();
  59. virtual void drainEvents();
  60. virtual void queueEvent();
  61. private:
  62. static const jlong serialVersionUID = -1116180831621385484LL;
  63. ::java::lang::Runnable * __attribute__((aligned(__alignof__( ::java::lang::Object)))) drainer;
  64. static ::java::util::Timer * timer;
  65. public: // actually package-private
  66. static jboolean logTimers;
  67. public: // actually protected
  68. ::javax::swing::event::EventListenerList * listenerList;
  69. public: // actually package-private
  70. jboolean coalesce;
  71. jboolean repeats;
  72. jint delay;
  73. jint initialDelay;
  74. jint ticks;
  75. ::javax::swing::Timer$Task * task;
  76. private:
  77. jlong queue;
  78. ::java::lang::Object * queueLock;
  79. public:
  80. static ::java::lang::Class class$;
  81. };
  82. #endif // __javax_swing_Timer__