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 ::javax::accessibility::AccessibleContext
* getAccessibleContext();
99 virtual jfloat
getAlignmentX();
100 virtual jfloat
getAlignmentY();
101 virtual jboolean
getAutoscrolls();
102 virtual void setBorder(::javax::swing::border::Border
*);
103 virtual ::javax::swing::border::Border
* getBorder();
104 virtual ::java::awt::Rectangle
* getBounds(::java::awt::Rectangle
*);
105 public: // actually protected
106 virtual ::java::awt::Graphics
* getComponentGraphics(::java::awt::Graphics
*);
108 virtual jint
getDebugGraphicsOptions();
109 virtual ::java::awt::Insets
* getInsets();
110 virtual ::java::awt::Insets
* getInsets(::java::awt::Insets
*);
111 virtual ::java::awt::Point
* getLocation(::java::awt::Point
*);
112 virtual ::java::awt::Dimension
* getMaximumSize();
113 virtual ::java::awt::Dimension
* getMinimumSize();
114 virtual ::java::awt::Dimension
* getPreferredSize();
115 virtual ::java::awt::Component
* getNextFocusableComponent();
116 virtual JArray
< ::javax::swing::KeyStroke
* > * getRegisteredKeyStrokes();
117 virtual ::javax::swing::JRootPane
* getRootPane();
118 virtual ::java::awt::Dimension
* getSize(::java::awt::Dimension
*);
119 virtual ::javax::swing::JToolTip
* createToolTip();
120 virtual ::java::awt::Point
* getToolTipLocation(::java::awt::event::MouseEvent
*);
121 virtual void setToolTipText(::java::lang::String
*);
122 virtual ::java::lang::String
* getToolTipText();
123 virtual ::java::lang::String
* getToolTipText(::java::awt::event::MouseEvent
*);
124 virtual jboolean
getInheritsPopupMenu();
125 virtual void setInheritsPopupMenu(jboolean
);
126 virtual ::javax::swing::JPopupMenu
* getComponentPopupMenu();
127 virtual void setComponentPopupMenu(::javax::swing::JPopupMenu
*);
128 virtual ::java::awt::Container
* getTopLevelAncestor();
129 virtual void computeVisibleRect(::java::awt::Rectangle
*);
130 virtual ::java::awt::Rectangle
* getVisibleRect();
131 virtual void grabFocus();
132 virtual jboolean
isDoubleBuffered();
133 static jboolean
isLightweightComponent(::java::awt::Component
*);
134 virtual jboolean
isManagingFocus();
135 virtual jboolean
isOpaque();
136 virtual jboolean
isOptimizedDrawingEnabled();
137 virtual jboolean
isPaintingTile();
138 virtual jboolean
isRequestFocusEnabled();
139 virtual jboolean
isValidateRoot();
140 virtual void paint(::java::awt::Graphics
*);
142 jboolean
isOccupiedByChild(jint
, jint
, jint
, jint
);
143 void initializeDragBuffer();
144 public: // actually protected
145 virtual void paintBorder(::java::awt::Graphics
*);
146 virtual void paintChildren(::java::awt::Graphics
*);
148 jboolean
isCompletelyObscured(jint
, jint
, jint
, jint
, jint
);
149 jboolean
isPartiallyObscured(jint
, jint
, jint
, jint
, jint
);
150 public: // actually protected
151 virtual void paintComponent(::java::awt::Graphics
*);
153 virtual void paintImmediately(jint
, jint
, jint
, jint
);
154 virtual void paintImmediately(::java::awt::Rectangle
*);
155 public: // actually package-private
156 virtual void paintImmediately2(jint
, jint
, jint
, jint
);
157 virtual jboolean
onTop();
158 virtual jboolean
isPaintRoot();
160 void paintDoubleBuffered(jint
, jint
, jint
, jint
);
161 void clipAndTranslateGraphics(::java::awt::Component
*, ::java::awt::Component
*, ::java::awt::Graphics
*);
162 public: // actually package-private
163 virtual void paintSimple(::java::awt::Rectangle
*);
164 public: // actually protected
165 virtual ::java::lang::String
* paramString();
167 virtual void registerKeyboardAction(::java::awt::event::ActionListener
*, ::javax::swing::KeyStroke
*, jint
);
168 virtual void registerKeyboardAction(::java::awt::event::ActionListener
*, ::java::lang::String
*, ::javax::swing::KeyStroke
*, jint
);
169 virtual void setInputMap(jint
, ::javax::swing::InputMap
*);
170 virtual ::javax::swing::InputMap
* getInputMap(jint
);
171 virtual ::javax::swing::InputMap
* getInputMap();
172 virtual ::javax::swing::ActionMap
* getActionMap();
173 virtual void setActionMap(::javax::swing::ActionMap
*);
174 virtual jint
getConditionForKeyStroke(::javax::swing::KeyStroke
*);
175 virtual ::java::awt::event::ActionListener
* getActionForKeyStroke(::javax::swing::KeyStroke
*);
176 public: // actually protected
177 virtual void processComponentKeyEvent(::java::awt::event::KeyEvent
*);
178 virtual void processKeyEvent(::java::awt::event::KeyEvent
*);
179 virtual jboolean
processKeyBinding(::javax::swing::KeyStroke
*, ::java::awt::event::KeyEvent
*, jint
, jboolean
);
181 virtual void unregisterKeyboardAction(::javax::swing::KeyStroke
*);
182 virtual void resetKeyboardActions();
183 virtual void repaint(jlong
, jint
, jint
, jint
, jint
);
184 virtual void repaint(::java::awt::Rectangle
*);
185 virtual jboolean
requestDefaultFocus();
186 virtual void revalidate();
187 virtual void scrollRectToVisible(::java::awt::Rectangle
*);
188 virtual void setAlignmentX(jfloat
);
189 virtual void setAlignmentY(jfloat
);
190 virtual void setAutoscrolls(jboolean
);
191 virtual void setDebugGraphicsOptions(jint
);
192 virtual void setDoubleBuffered(jboolean
);
193 virtual void setEnabled(jboolean
);
194 virtual void setFont(::java::awt::Font
*);
195 virtual void setBackground(::java::awt::Color
*);
196 virtual void setForeground(::java::awt::Color
*);
197 virtual void setNextFocusableComponent(::java::awt::Component
*);
198 virtual void setRequestFocusEnabled(jboolean
);
199 virtual ::javax::swing::TransferHandler
* getTransferHandler();
200 virtual void setTransferHandler(::javax::swing::TransferHandler
*);
201 virtual void setOpaque(jboolean
);
202 virtual void setVisible(jboolean
);
203 virtual void update(::java::awt::Graphics
*);
204 virtual ::java::lang::String
* getUIClassID();
205 public: // actually protected
206 virtual void setUI(::javax::swing::plaf::ComponentUI
*);
208 virtual void updateUI();
209 static ::java::util::Locale
* getDefaultLocale();
210 static void setDefaultLocale(::java::util::Locale
*);
211 virtual ::javax::swing::InputVerifier
* getInputVerifier();
212 virtual void setInputVerifier(::javax::swing::InputVerifier
*);
213 virtual jboolean
getVerifyInputWhenFocusTarget();
214 virtual void setVerifyInputWhenFocusTarget(jboolean
);
215 virtual void requestFocus();
216 virtual jboolean
requestFocus(jboolean
);
217 virtual jboolean
requestFocusInWindow();
218 public: // actually protected
219 virtual jboolean
requestFocusInWindow(jboolean
);
221 virtual void addNotify();
222 virtual void removeNotify();
223 virtual jboolean
contains(jint
, jint
);
224 virtual void disable();
225 virtual void enable();
226 virtual ::java::awt::Graphics
* getGraphics();
229 virtual jint
getHeight();
230 virtual jint
getWidth();
231 virtual void print(::java::awt::Graphics
*);
232 virtual void printAll(::java::awt::Graphics
*);
233 public: // actually protected
234 virtual void printComponent(::java::awt::Graphics
*);
235 virtual void printChildren(::java::awt::Graphics
*);
236 virtual void printBorder(::java::awt::Graphics
*);
237 virtual void processMouseMotionEvent(::java::awt::event::MouseEvent
*);
239 virtual void reshape(jint
, jint
, jint
, jint
);
240 public: // actually package-private
241 virtual void fireAncestorEvent(::javax::swing::JComponent
*, jint
);
242 virtual void updateComponentInputMap(::javax::swing::ComponentInputMap
*);
243 virtual void setUIProperty(::java::lang::String
*, ::java::lang::Object
*);
245 static const jlong serialVersionUID
= -7908749299918704233LL;
246 public: // actually protected
247 ::javax::accessibility::AccessibleContext
* __attribute__((aligned(__alignof__( ::java::awt::Container
)))) accessibleContext
;
248 public: // actually package-private
251 ::javax::swing::border::Border
* border
;
252 ::javax::swing::JPopupMenu
* componentPopupMenu
;
253 jboolean inheritsPopupMenu
;
254 jboolean doubleBuffered
;
255 jint debugGraphicsOptions
;
257 public: // actually protected
258 ::javax::swing::plaf::ComponentUI
* ui
;
259 public: // actually package-private
260 jboolean requestFocusEnabled
;
261 jboolean autoscrolls
;
262 static jboolean paintingDoubleBuffered
;
263 static jboolean isRepainting
;
264 public: // actually protected
265 ::javax::swing::event::EventListenerList
* listenerList
;
267 ::java::beans::VetoableChangeSupport
* vetoableChangeSupport
;
268 ::java::util::Hashtable
* clientProperties
;
269 ::javax::swing::InputMap
* inputMap_whenFocused
;
270 ::javax::swing::InputMap
* inputMap_whenAncestorOfFocused
;
271 ::javax::swing::ComponentInputMap
* inputMap_whenInFocusedWindow
;
272 ::javax::swing::ActionMap
* actionMap
;
273 jboolean verifyInputWhenFocusTarget
;
274 ::javax::swing::InputVerifier
* inputVerifier
;
275 ::javax::swing::TransferHandler
* transferHandler
;
276 jboolean paintingTile
;
277 ::java::awt::Image
* dragBuffer
;
278 jboolean dragBufferInitialized
;
279 static ::java::awt::Rectangle
* rectCache
;
280 static ::java::util::Locale
* defaultLocale
;
282 static ::java::lang::String
* TOOL_TIP_TEXT_KEY
;
283 static const jint UNDEFINED_CONDITION
= -1;
284 static const jint WHEN_FOCUSED
= 0;
285 static const jint WHEN_ANCESTOR_OF_FOCUSED_COMPONENT
= 1;
286 static const jint WHEN_IN_FOCUSED_WINDOW
= 2;
287 public: // actually package-private
288 ::java::awt::Component
* paintChild
;
290 jboolean clientOpaqueSet
;
291 jboolean clientAutoscrollsSet
;
293 static ::java::lang::Class
class$
;
296 #endif // __javax_swing_JComponent__