2 // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
4 #ifndef __javax_swing_text_JTextComponent__
5 #define __javax_swing_text_JTextComponent__
9 #include <javax/swing/JComponent.h>
10 #include <gcj/array.h>
25 class InputMethodListener
;
32 namespace accessibility
34 class AccessibleContext
;
54 class JTextComponent$DefaultTransferHandler
;
55 class JTextComponent$KeyBinding
;
57 class NavigationFilter
;
63 class javax::swing::text::JTextComponent
: public ::javax::swing::JComponent
67 static ::javax::swing::text::Keymap
* getKeymap(::java::lang::String
*);
68 static ::javax::swing::text::Keymap
* removeKeymap(::java::lang::String
*);
69 static ::javax::swing::text::Keymap
* addKeymap(::java::lang::String
*, ::javax::swing::text::Keymap
*);
70 virtual ::javax::swing::text::Keymap
* getKeymap();
71 virtual void setKeymap(::javax::swing::text::Keymap
*);
72 static void loadKeymap(::javax::swing::text::Keymap
*, JArray
< ::javax::swing::text::JTextComponent$KeyBinding
* > *, JArray
< ::javax::swing::Action
* > *);
73 virtual JArray
< ::javax::swing::Action
* > * getActions();
75 virtual void setDocument(::javax::swing::text::Document
*);
76 virtual ::javax::swing::text::Document
* getDocument();
77 virtual ::javax::accessibility::AccessibleContext
* getAccessibleContext();
78 virtual void setMargin(::java::awt::Insets
*);
79 virtual ::java::awt::Insets
* getMargin();
80 virtual void setText(::java::lang::String
*);
81 virtual ::java::lang::String
* getText();
82 virtual ::java::lang::String
* getText(jint
, jint
);
83 virtual ::java::lang::String
* getSelectedText();
84 virtual ::java::lang::String
* getUIClassID();
85 public: // actually protected
86 virtual ::java::lang::String
* paramString();
88 virtual ::javax::swing::plaf::TextUI
* getUI();
89 virtual void setUI(::javax::swing::plaf::TextUI
*);
90 virtual void updateUI();
91 virtual ::java::awt::Dimension
* getPreferredScrollableViewportSize();
92 virtual jint
getScrollableUnitIncrement(::java::awt::Rectangle
*, jint
, jint
);
93 virtual jint
getScrollableBlockIncrement(::java::awt::Rectangle
*, jint
, jint
);
94 virtual jboolean
isEditable();
95 virtual void setEditable(jboolean
);
96 virtual ::javax::swing::text::Caret
* getCaret();
97 virtual void setCaret(::javax::swing::text::Caret
*);
98 virtual ::java::awt::Color
* getCaretColor();
99 virtual void setCaretColor(::java::awt::Color
*);
100 virtual ::java::awt::Color
* getDisabledTextColor();
101 virtual void setDisabledTextColor(::java::awt::Color
*);
102 virtual ::java::awt::Color
* getSelectedTextColor();
103 virtual void setSelectedTextColor(::java::awt::Color
*);
104 virtual ::java::awt::Color
* getSelectionColor();
105 virtual void setSelectionColor(::java::awt::Color
*);
106 virtual jint
getCaretPosition();
107 virtual void setCaretPosition(jint
);
108 virtual void moveCaretPosition(jint
);
109 virtual ::javax::swing::text::Highlighter
* getHighlighter();
110 virtual void setHighlighter(::javax::swing::text::Highlighter
*);
111 virtual jint
getSelectionStart();
112 virtual void setSelectionStart(jint
);
113 virtual jint
getSelectionEnd();
114 virtual void setSelectionEnd(jint
);
115 virtual void select(jint
, jint
);
116 virtual void selectAll();
117 virtual void replaceSelection(::java::lang::String
*);
118 virtual jboolean
getScrollableTracksViewportHeight();
119 virtual jboolean
getScrollableTracksViewportWidth();
120 virtual void addCaretListener(::javax::swing::event::CaretListener
*);
121 virtual void removeCaretListener(::javax::swing::event::CaretListener
*);
122 virtual JArray
< ::javax::swing::event::CaretListener
* > * getCaretListeners();
123 public: // actually protected
124 virtual void fireCaretUpdate(::javax::swing::event::CaretEvent
*);
126 virtual void addInputMethodListener(::java::awt::event::InputMethodListener
*);
127 virtual void removeInputMethodListener(::java::awt::event::InputMethodListener
*);
128 virtual JArray
< ::java::awt::event::InputMethodListener
* > * getInputMethodListeners();
129 virtual ::java::awt::Rectangle
* modelToView(jint
);
130 virtual jboolean
getDragEnabled();
131 virtual void setDragEnabled(jboolean
);
132 virtual jint
viewToModel(::java::awt::Point
*);
135 virtual void paste();
137 void doTransferAction(::java::lang::String
*, ::javax::swing::Action
*);
139 virtual void setFocusAccelerator(jchar
);
140 virtual jchar
getFocusAccelerator();
141 virtual ::javax::swing::text::NavigationFilter
* getNavigationFilter();
142 virtual void setNavigationFilter(::javax::swing::text::NavigationFilter
*);
143 virtual void read(::java::io::Reader
*, ::java::lang::Object
*);
144 virtual void write(::java::io::Writer
*);
145 virtual ::java::lang::String
* getToolTipText(::java::awt::event::MouseEvent
*);
147 static const jlong serialVersionUID
= -8796518220218978795LL;
149 static ::java::lang::String
* DEFAULT_KEYMAP
;
150 static ::java::lang::String
* FOCUS_ACCELERATOR_KEY
;
152 static ::javax::swing::text::JTextComponent$DefaultTransferHandler
* defaultTransferHandler
;
153 static ::java::util::Hashtable
* keymaps
;
154 ::javax::swing::text::Keymap
* __attribute__((aligned(__alignof__( ::javax::swing::JComponent
)))) keymap
;
155 jchar focusAccelerator
;
156 ::javax::swing::text::NavigationFilter
* navigationFilter
;
157 public: // actually package-private
158 ::javax::swing::text::Document
* doc
;
159 ::javax::swing::text::Caret
* caret
;
162 ::javax::swing::text::Highlighter
* highlighter
;
163 ::java::awt::Color
* caretColor
;
164 ::java::awt::Color
* disabledTextColor
;
165 ::java::awt::Color
* selectedTextColor
;
166 ::java::awt::Color
* selectionColor
;
167 ::java::awt::Insets
* margin
;
168 jboolean dragEnabled
;
170 static ::java::lang::Class
class$
;
173 #endif // __javax_swing_text_JTextComponent__