2 // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
4 #ifndef __javax_swing_JComponent__
5 #define __javax_swing_JComponent__
9 #include <java/awt/Container.h>
10 #include <gcj/array.h>
37 class VetoableChangeListener
;
38 class VetoableChangeSupport
;
43 namespace accessibility
45 class AccessibleContext
;
50 class ComponentInputMap
;
58 class TransferHandler
;
65 class AncestorListener
;
66 class EventListenerList
;
76 class javax::swing::JComponent
: public ::java::awt::Container
82 ::java::util::Hashtable
* getClientProperties();
84 virtual ::java::lang::Object
* getClientProperty(::java::lang::Object
*);
85 virtual void putClientProperty(::java::lang::Object
*, ::java::lang::Object
*);
86 virtual void removeAncestorListener(::javax::swing::event::AncestorListener
*);
87 virtual void removeVetoableChangeListener(::java::beans::VetoableChangeListener
*);
88 virtual void addAncestorListener(::javax::swing::event::AncestorListener
*);
89 virtual void addVetoableChangeListener(::java::beans::VetoableChangeListener
*);
90 virtual JArray
< ::java::util::EventListener
* > * getListeners(::java::lang::Class
*);
91 virtual JArray
< ::javax::swing::event::AncestorListener
* > * getAncestorListeners();
92 virtual JArray
< ::java::beans::VetoableChangeListener
* > * getVetoableChangeListeners();
93 public: // actually protected
94 virtual void fireVetoableChange(::java::lang::String
*, ::java::lang::Object
*, ::java::lang::Object
*);
96 virtual void firePropertyChange(::java::lang::String
*, jint
, jint
);
97 virtual void firePropertyChange(::java::lang::String
*, jboolean
, jboolean
);
98 virtual void firePropertyChange(::java::lang::String
*, jchar
, jchar
);
99 virtual ::javax::accessibility::AccessibleContext
* getAccessibleContext();
100 virtual jfloat
getAlignmentX();
101 virtual jfloat
getAlignmentY();
102 virtual jboolean
getAutoscrolls();
103 virtual void setBorder(::javax::swing::border::Border
*);
104 virtual ::javax::swing::border::Border
* getBorder();
105 virtual ::java::awt::Rectangle
* getBounds(::java::awt::Rectangle
*);
106 public: // actually protected
107 virtual ::java::awt::Graphics
* getComponentGraphics(::java::awt::Graphics
*);
109 virtual jint
getDebugGraphicsOptions();
110 virtual ::java::awt::Insets
* getInsets();
111 virtual ::java::awt::Insets
* getInsets(::java::awt::Insets
*);
112 virtual ::java::awt::Point
* getLocation(::java::awt::Point
*);
113 virtual ::java::awt::Dimension
* getMaximumSize();
114 virtual ::java::awt::Dimension
* getMinimumSize();
115 virtual ::java::awt::Dimension
* getPreferredSize();
116 virtual ::java::awt::Component
* getNextFocusableComponent();
117 virtual JArray
< ::javax::swing::KeyStroke
* > * getRegisteredKeyStrokes();
118 virtual ::javax::swing::JRootPane
* getRootPane();
119 virtual ::java::awt::Dimension
* getSize(::java::awt::Dimension
*);
120 virtual ::javax::swing::JToolTip
* createToolTip();
121 virtual ::java::awt::Point
* getToolTipLocation(::java::awt::event::MouseEvent
*);
122 virtual void setToolTipText(::java::lang::String
*);
123 virtual ::java::lang::String
* getToolTipText();
124 virtual ::java::lang::String
* getToolTipText(::java::awt::event::MouseEvent
*);
125 virtual jboolean
getInheritsPopupMenu();
126 virtual void setInheritsPopupMenu(jboolean
);
127 virtual ::javax::swing::JPopupMenu
* getComponentPopupMenu();
128 virtual void setComponentPopupMenu(::javax::swing::JPopupMenu
*);
129 virtual ::java::awt::Container
* getTopLevelAncestor();
130 virtual void computeVisibleRect(::java::awt::Rectangle
*);
131 virtual ::java::awt::Rectangle
* getVisibleRect();
132 virtual void grabFocus();
133 virtual jboolean
isDoubleBuffered();
134 static jboolean
isLightweightComponent(::java::awt::Component
*);
135 virtual jboolean
isManagingFocus();
136 virtual jboolean
isOpaque();
137 virtual jboolean
isOptimizedDrawingEnabled();
138 virtual jboolean
isPaintingTile();
139 virtual jboolean
isRequestFocusEnabled();
140 virtual jboolean
isValidateRoot();
141 virtual void paint(::java::awt::Graphics
*);
143 jboolean
isOccupiedByChild(jint
, jint
, jint
, jint
);
144 void initializeDragBuffer();
145 public: // actually protected
146 virtual void paintBorder(::java::awt::Graphics
*);
147 virtual void paintChildren(::java::awt::Graphics
*);
149 jboolean
isCompletelyObscured(jint
, jint
, jint
, jint
, jint
);
150 jboolean
isPartiallyObscured(jint
, jint
, jint
, jint
, jint
);
151 public: // actually protected
152 virtual void paintComponent(::java::awt::Graphics
*);
154 virtual void paintImmediately(jint
, jint
, jint
, jint
);
155 virtual void paintImmediately(::java::awt::Rectangle
*);
156 public: // actually package-private
157 virtual void paintImmediately2(jint
, jint
, jint
, jint
);
158 virtual jboolean
onTop();
159 virtual jboolean
isPaintRoot();
161 void paintDoubleBuffered(jint
, jint
, jint
, jint
);
162 void clipAndTranslateGraphics(::java::awt::Component
*, ::java::awt::Component
*, ::java::awt::Graphics
*);
163 public: // actually package-private
164 virtual void paintSimple(::java::awt::Rectangle
*);
165 public: // actually protected
166 virtual ::java::lang::String
* paramString();
168 virtual void registerKeyboardAction(::java::awt::event::ActionListener
*, ::javax::swing::KeyStroke
*, jint
);
169 virtual void registerKeyboardAction(::java::awt::event::ActionListener
*, ::java::lang::String
*, ::javax::swing::KeyStroke
*, jint
);
170 virtual void setInputMap(jint
, ::javax::swing::InputMap
*);
171 virtual ::javax::swing::InputMap
* getInputMap(jint
);
172 virtual ::javax::swing::InputMap
* getInputMap();
173 virtual ::javax::swing::ActionMap
* getActionMap();
174 virtual void setActionMap(::javax::swing::ActionMap
*);
175 virtual jint
getConditionForKeyStroke(::javax::swing::KeyStroke
*);
176 virtual ::java::awt::event::ActionListener
* getActionForKeyStroke(::javax::swing::KeyStroke
*);
177 public: // actually protected
178 virtual void processComponentKeyEvent(::java::awt::event::KeyEvent
*);
179 virtual void processKeyEvent(::java::awt::event::KeyEvent
*);
180 virtual jboolean
processKeyBinding(::javax::swing::KeyStroke
*, ::java::awt::event::KeyEvent
*, jint
, jboolean
);
182 virtual void unregisterKeyboardAction(::javax::swing::KeyStroke
*);
183 virtual void resetKeyboardActions();
184 virtual void repaint(jlong
, jint
, jint
, jint
, jint
);
185 virtual void repaint(::java::awt::Rectangle
*);
186 virtual jboolean
requestDefaultFocus();
187 virtual void revalidate();
188 virtual void scrollRectToVisible(::java::awt::Rectangle
*);
189 virtual void setAlignmentX(jfloat
);
190 virtual void setAlignmentY(jfloat
);
191 virtual void setAutoscrolls(jboolean
);
192 virtual void setDebugGraphicsOptions(jint
);
193 virtual void setDoubleBuffered(jboolean
);
194 virtual void setEnabled(jboolean
);
195 virtual void setFont(::java::awt::Font
*);
196 virtual void setBackground(::java::awt::Color
*);
197 virtual void setForeground(::java::awt::Color
*);
198 virtual void setNextFocusableComponent(::java::awt::Component
*);
199 virtual void setRequestFocusEnabled(jboolean
);
200 virtual ::javax::swing::TransferHandler
* getTransferHandler();
201 virtual void setTransferHandler(::javax::swing::TransferHandler
*);
202 virtual void setOpaque(jboolean
);
203 virtual void setVisible(jboolean
);
204 virtual void update(::java::awt::Graphics
*);
205 virtual ::java::lang::String
* getUIClassID();
206 public: // actually protected
207 virtual void setUI(::javax::swing::plaf::ComponentUI
*);
209 virtual void updateUI();
210 static ::java::util::Locale
* getDefaultLocale();
211 static void setDefaultLocale(::java::util::Locale
*);
212 virtual ::javax::swing::InputVerifier
* getInputVerifier();
213 virtual void setInputVerifier(::javax::swing::InputVerifier
*);
214 virtual jboolean
getVerifyInputWhenFocusTarget();
215 virtual void setVerifyInputWhenFocusTarget(jboolean
);
216 virtual void requestFocus();
217 virtual jboolean
requestFocus(jboolean
);
218 virtual jboolean
requestFocusInWindow();
219 public: // actually protected
220 virtual jboolean
requestFocusInWindow(jboolean
);
222 virtual void addNotify();
223 virtual void removeNotify();
224 virtual jboolean
contains(jint
, jint
);
225 virtual void disable();
226 virtual void enable();
227 virtual ::java::awt::Graphics
* getGraphics();
230 virtual jint
getHeight();
231 virtual jint
getWidth();
232 virtual void print(::java::awt::Graphics
*);
233 virtual void printAll(::java::awt::Graphics
*);
234 public: // actually protected
235 virtual void printComponent(::java::awt::Graphics
*);
236 virtual void printChildren(::java::awt::Graphics
*);
237 virtual void printBorder(::java::awt::Graphics
*);
238 virtual void processMouseMotionEvent(::java::awt::event::MouseEvent
*);
240 virtual void reshape(jint
, jint
, jint
, jint
);
241 public: // actually package-private
242 virtual void fireAncestorEvent(::javax::swing::JComponent
*, jint
);
243 virtual void updateComponentInputMap(::javax::swing::ComponentInputMap
*);
244 virtual void setUIProperty(::java::lang::String
*, ::java::lang::Object
*);
246 static const jlong serialVersionUID
= -7908749299918704233LL;
247 public: // actually protected
248 ::javax::accessibility::AccessibleContext
* __attribute__((aligned(__alignof__( ::java::awt::Container
)))) accessibleContext
;
249 public: // actually package-private
252 ::javax::swing::border::Border
* border
;
253 ::javax::swing::JPopupMenu
* componentPopupMenu
;
254 jboolean inheritsPopupMenu
;
255 jboolean doubleBuffered
;
256 jint debugGraphicsOptions
;
258 public: // actually protected
259 ::javax::swing::plaf::ComponentUI
* ui
;
260 public: // actually package-private
261 jboolean requestFocusEnabled
;
262 jboolean autoscrolls
;
263 static jboolean paintingDoubleBuffered
;
264 static jboolean isRepainting
;
265 public: // actually protected
266 ::javax::swing::event::EventListenerList
* listenerList
;
268 ::java::beans::VetoableChangeSupport
* vetoableChangeSupport
;
269 ::java::util::Hashtable
* clientProperties
;
270 ::javax::swing::InputMap
* inputMap_whenFocused
;
271 ::javax::swing::InputMap
* inputMap_whenAncestorOfFocused
;
272 ::javax::swing::ComponentInputMap
* inputMap_whenInFocusedWindow
;
273 ::javax::swing::ActionMap
* actionMap
;
274 jboolean verifyInputWhenFocusTarget
;
275 ::javax::swing::InputVerifier
* inputVerifier
;
276 ::javax::swing::TransferHandler
* transferHandler
;
277 jboolean paintingTile
;
278 ::java::awt::Image
* dragBuffer
;
279 jboolean dragBufferInitialized
;
280 static ::java::awt::Rectangle
* rectCache
;
281 static ::java::util::Locale
* defaultLocale
;
283 static ::java::lang::String
* TOOL_TIP_TEXT_KEY
;
284 static const jint UNDEFINED_CONDITION
= -1;
285 static const jint WHEN_FOCUSED
= 0;
286 static const jint WHEN_ANCESTOR_OF_FOCUSED_COMPONENT
= 1;
287 static const jint WHEN_IN_FOCUSED_WINDOW
= 2;
288 public: // actually package-private
289 ::java::awt::Component
* paintChild
;
291 jboolean clientOpaqueSet
;
292 jboolean clientAutoscrollsSet
;
294 static ::java::lang::Class
class$
;
297 #endif // __javax_swing_JComponent__