TextComponent.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __java_awt_TextComponent__
  3. #define __java_awt_TextComponent__
  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 Point;
  15. class Rectangle;
  16. class TextComponent;
  17. namespace event
  18. {
  19. class TextEvent;
  20. class TextListener;
  21. }
  22. }
  23. }
  24. namespace javax
  25. {
  26. namespace accessibility
  27. {
  28. class AccessibleContext;
  29. }
  30. }
  31. }
  32. class java::awt::TextComponent : public ::java::awt::Component
  33. {
  34. public: // actually package-private
  35. TextComponent(::java::lang::String *);
  36. public:
  37. virtual ::java::lang::String * getText();
  38. virtual void setText(::java::lang::String *);
  39. virtual ::java::lang::String * getSelectedText();
  40. virtual jint getSelectionStart();
  41. virtual void setSelectionStart(jint);
  42. virtual jint getSelectionEnd();
  43. virtual void setSelectionEnd(jint);
  44. virtual void select(jint, jint);
  45. virtual void selectAll();
  46. virtual jint getCaretPosition();
  47. virtual void setCaretPosition(jint);
  48. virtual jboolean isEditable();
  49. virtual void setEditable(jboolean);
  50. virtual void removeNotify();
  51. virtual void addTextListener(::java::awt::event::TextListener *);
  52. virtual void removeTextListener(::java::awt::event::TextListener *);
  53. public: // actually protected
  54. virtual void processEvent(::java::awt::AWTEvent *);
  55. virtual void processTextEvent(::java::awt::event::TextEvent *);
  56. public: // actually package-private
  57. virtual void dispatchEventImpl(::java::awt::AWTEvent *);
  58. public: // actually protected
  59. virtual ::java::lang::String * paramString();
  60. public:
  61. virtual JArray< ::java::util::EventListener * > * getListeners(::java::lang::Class *);
  62. virtual JArray< ::java::awt::event::TextListener * > * getTextListeners();
  63. virtual ::javax::accessibility::AccessibleContext * getAccessibleContext();
  64. public: // actually package-private
  65. virtual jint getIndexAtPoint(::java::awt::Point *);
  66. virtual ::java::awt::Rectangle * getCharacterBounds(jint);
  67. static jboolean ignoreOldMouseEvents();
  68. private:
  69. static const jlong serialVersionUID = -2214773872412987419LL;
  70. public: // actually package-private
  71. jboolean __attribute__((aligned(__alignof__( ::java::awt::Component)))) editable;
  72. jint selectionStart;
  73. jint selectionEnd;
  74. ::java::lang::String * text;
  75. public: // actually protected
  76. ::java::awt::event::TextListener * textListener;
  77. public:
  78. static ::java::lang::Class class$;
  79. };
  80. #endif // __java_awt_TextComponent__