1 |
759 |
jeremybenn |
|
2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
3 |
|
|
|
4 |
|
|
#ifndef __javax_swing_text_JTextComponent__
|
5 |
|
|
#define __javax_swing_text_JTextComponent__
|
6 |
|
|
|
7 |
|
|
#pragma interface
|
8 |
|
|
|
9 |
|
|
#include <javax/swing/JComponent.h>
|
10 |
|
|
#include <gcj/array.h>
|
11 |
|
|
|
12 |
|
|
extern "Java"
|
13 |
|
|
{
|
14 |
|
|
namespace java
|
15 |
|
|
{
|
16 |
|
|
namespace awt
|
17 |
|
|
{
|
18 |
|
|
class Color;
|
19 |
|
|
class Dimension;
|
20 |
|
|
class Insets;
|
21 |
|
|
class Point;
|
22 |
|
|
class Rectangle;
|
23 |
|
|
namespace event
|
24 |
|
|
{
|
25 |
|
|
class InputMethodListener;
|
26 |
|
|
class MouseEvent;
|
27 |
|
|
}
|
28 |
|
|
}
|
29 |
|
|
}
|
30 |
|
|
namespace javax
|
31 |
|
|
{
|
32 |
|
|
namespace accessibility
|
33 |
|
|
{
|
34 |
|
|
class AccessibleContext;
|
35 |
|
|
}
|
36 |
|
|
namespace swing
|
37 |
|
|
{
|
38 |
|
|
class Action;
|
39 |
|
|
namespace event
|
40 |
|
|
{
|
41 |
|
|
class CaretEvent;
|
42 |
|
|
class CaretListener;
|
43 |
|
|
}
|
44 |
|
|
namespace plaf
|
45 |
|
|
{
|
46 |
|
|
class TextUI;
|
47 |
|
|
}
|
48 |
|
|
namespace text
|
49 |
|
|
{
|
50 |
|
|
class Caret;
|
51 |
|
|
class Document;
|
52 |
|
|
class Highlighter;
|
53 |
|
|
class JTextComponent;
|
54 |
|
|
class JTextComponent$DefaultTransferHandler;
|
55 |
|
|
class JTextComponent$KeyBinding;
|
56 |
|
|
class Keymap;
|
57 |
|
|
class NavigationFilter;
|
58 |
|
|
}
|
59 |
|
|
}
|
60 |
|
|
}
|
61 |
|
|
}
|
62 |
|
|
|
63 |
|
|
class javax::swing::text::JTextComponent : public ::javax::swing::JComponent
|
64 |
|
|
{
|
65 |
|
|
|
66 |
|
|
public:
|
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();
|
74 |
|
|
JTextComponent();
|
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();
|
87 |
|
|
public:
|
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 *);
|
125 |
|
|
public:
|
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 *);
|
133 |
|
|
virtual void copy();
|
134 |
|
|
virtual void cut();
|
135 |
|
|
virtual void paste();
|
136 |
|
|
private:
|
137 |
|
|
void doTransferAction(::java::lang::String *, ::javax::swing::Action *);
|
138 |
|
|
public:
|
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 *);
|
146 |
|
|
private:
|
147 |
|
|
static const jlong serialVersionUID = -8796518220218978795LL;
|
148 |
|
|
public:
|
149 |
|
|
static ::java::lang::String * DEFAULT_KEYMAP;
|
150 |
|
|
static ::java::lang::String * FOCUS_ACCELERATOR_KEY;
|
151 |
|
|
private:
|
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;
|
160 |
|
|
jboolean editable;
|
161 |
|
|
private:
|
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;
|
169 |
|
|
public:
|
170 |
|
|
static ::java::lang::Class class$;
|
171 |
|
|
};
|
172 |
|
|
|
173 |
|
|
#endif // __javax_swing_text_JTextComponent__
|