JTextComponent.h 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __javax_swing_text_JTextComponent__
  3. #define __javax_swing_text_JTextComponent__
  4. #pragma interface
  5. #include <javax/swing/JComponent.h>
  6. #include <gcj/array.h>
  7. extern "Java"
  8. {
  9. namespace java
  10. {
  11. namespace awt
  12. {
  13. class Color;
  14. class Dimension;
  15. class Insets;
  16. class Point;
  17. class Rectangle;
  18. namespace event
  19. {
  20. class InputMethodListener;
  21. class MouseEvent;
  22. }
  23. }
  24. }
  25. namespace javax
  26. {
  27. namespace accessibility
  28. {
  29. class AccessibleContext;
  30. }
  31. namespace swing
  32. {
  33. class Action;
  34. namespace event
  35. {
  36. class CaretEvent;
  37. class CaretListener;
  38. }
  39. namespace plaf
  40. {
  41. class TextUI;
  42. }
  43. namespace text
  44. {
  45. class Caret;
  46. class Document;
  47. class Highlighter;
  48. class JTextComponent;
  49. class JTextComponent$DefaultTransferHandler;
  50. class JTextComponent$KeyBinding;
  51. class Keymap;
  52. class NavigationFilter;
  53. }
  54. }
  55. }
  56. }
  57. class javax::swing::text::JTextComponent : public ::javax::swing::JComponent
  58. {
  59. public:
  60. static ::javax::swing::text::Keymap * getKeymap(::java::lang::String *);
  61. static ::javax::swing::text::Keymap * removeKeymap(::java::lang::String *);
  62. static ::javax::swing::text::Keymap * addKeymap(::java::lang::String *, ::javax::swing::text::Keymap *);
  63. virtual ::javax::swing::text::Keymap * getKeymap();
  64. virtual void setKeymap(::javax::swing::text::Keymap *);
  65. static void loadKeymap(::javax::swing::text::Keymap *, JArray< ::javax::swing::text::JTextComponent$KeyBinding * > *, JArray< ::javax::swing::Action * > *);
  66. virtual JArray< ::javax::swing::Action * > * getActions();
  67. JTextComponent();
  68. virtual void setDocument(::javax::swing::text::Document *);
  69. virtual ::javax::swing::text::Document * getDocument();
  70. virtual ::javax::accessibility::AccessibleContext * getAccessibleContext();
  71. virtual void setMargin(::java::awt::Insets *);
  72. virtual ::java::awt::Insets * getMargin();
  73. virtual void setText(::java::lang::String *);
  74. virtual ::java::lang::String * getText();
  75. virtual ::java::lang::String * getText(jint, jint);
  76. virtual ::java::lang::String * getSelectedText();
  77. virtual ::java::lang::String * getUIClassID();
  78. public: // actually protected
  79. virtual ::java::lang::String * paramString();
  80. public:
  81. virtual ::javax::swing::plaf::TextUI * getUI();
  82. virtual void setUI(::javax::swing::plaf::TextUI *);
  83. virtual void updateUI();
  84. virtual ::java::awt::Dimension * getPreferredScrollableViewportSize();
  85. virtual jint getScrollableUnitIncrement(::java::awt::Rectangle *, jint, jint);
  86. virtual jint getScrollableBlockIncrement(::java::awt::Rectangle *, jint, jint);
  87. virtual jboolean isEditable();
  88. virtual void setEditable(jboolean);
  89. virtual ::javax::swing::text::Caret * getCaret();
  90. virtual void setCaret(::javax::swing::text::Caret *);
  91. virtual ::java::awt::Color * getCaretColor();
  92. virtual void setCaretColor(::java::awt::Color *);
  93. virtual ::java::awt::Color * getDisabledTextColor();
  94. virtual void setDisabledTextColor(::java::awt::Color *);
  95. virtual ::java::awt::Color * getSelectedTextColor();
  96. virtual void setSelectedTextColor(::java::awt::Color *);
  97. virtual ::java::awt::Color * getSelectionColor();
  98. virtual void setSelectionColor(::java::awt::Color *);
  99. virtual jint getCaretPosition();
  100. virtual void setCaretPosition(jint);
  101. virtual void moveCaretPosition(jint);
  102. virtual ::javax::swing::text::Highlighter * getHighlighter();
  103. virtual void setHighlighter(::javax::swing::text::Highlighter *);
  104. virtual jint getSelectionStart();
  105. virtual void setSelectionStart(jint);
  106. virtual jint getSelectionEnd();
  107. virtual void setSelectionEnd(jint);
  108. virtual void select(jint, jint);
  109. virtual void selectAll();
  110. virtual void replaceSelection(::java::lang::String *);
  111. virtual jboolean getScrollableTracksViewportHeight();
  112. virtual jboolean getScrollableTracksViewportWidth();
  113. virtual void addCaretListener(::javax::swing::event::CaretListener *);
  114. virtual void removeCaretListener(::javax::swing::event::CaretListener *);
  115. virtual JArray< ::javax::swing::event::CaretListener * > * getCaretListeners();
  116. public: // actually protected
  117. virtual void fireCaretUpdate(::javax::swing::event::CaretEvent *);
  118. public:
  119. virtual void addInputMethodListener(::java::awt::event::InputMethodListener *);
  120. virtual void removeInputMethodListener(::java::awt::event::InputMethodListener *);
  121. virtual JArray< ::java::awt::event::InputMethodListener * > * getInputMethodListeners();
  122. virtual ::java::awt::Rectangle * modelToView(jint);
  123. virtual jboolean getDragEnabled();
  124. virtual void setDragEnabled(jboolean);
  125. virtual jint viewToModel(::java::awt::Point *);
  126. virtual void copy();
  127. virtual void cut();
  128. virtual void paste();
  129. private:
  130. void doTransferAction(::java::lang::String *, ::javax::swing::Action *);
  131. public:
  132. virtual void setFocusAccelerator(jchar);
  133. virtual jchar getFocusAccelerator();
  134. virtual ::javax::swing::text::NavigationFilter * getNavigationFilter();
  135. virtual void setNavigationFilter(::javax::swing::text::NavigationFilter *);
  136. virtual void read(::java::io::Reader *, ::java::lang::Object *);
  137. virtual void write(::java::io::Writer *);
  138. virtual ::java::lang::String * getToolTipText(::java::awt::event::MouseEvent *);
  139. private:
  140. static const jlong serialVersionUID = -8796518220218978795LL;
  141. public:
  142. static ::java::lang::String * DEFAULT_KEYMAP;
  143. static ::java::lang::String * FOCUS_ACCELERATOR_KEY;
  144. private:
  145. static ::javax::swing::text::JTextComponent$DefaultTransferHandler * defaultTransferHandler;
  146. static ::java::util::Hashtable * keymaps;
  147. ::javax::swing::text::Keymap * __attribute__((aligned(__alignof__( ::javax::swing::JComponent)))) keymap;
  148. jchar focusAccelerator;
  149. ::javax::swing::text::NavigationFilter * navigationFilter;
  150. public: // actually package-private
  151. ::javax::swing::text::Document * doc;
  152. ::javax::swing::text::Caret * caret;
  153. jboolean editable;
  154. private:
  155. ::javax::swing::text::Highlighter * highlighter;
  156. ::java::awt::Color * caretColor;
  157. ::java::awt::Color * disabledTextColor;
  158. ::java::awt::Color * selectedTextColor;
  159. ::java::awt::Color * selectionColor;
  160. ::java::awt::Insets * margin;
  161. jboolean dragEnabled;
  162. public:
  163. static ::java::lang::Class class$;
  164. };
  165. #endif // __javax_swing_text_JTextComponent__