TextComponent.h

Go to the documentation of this file.
00001 #ifndef JAVA_AWT_TEXTCOMPONENT_H
00002 #define JAVA_AWT_TEXTCOMPONENT_H 1
00003 
00004 #ifndef JAVA_AWT_COMPONENT_H
00005 #include <java_awt/Component.h>
00006 #endif /* JAVA_AWT_COMPONENT_H */
00007 #ifndef JAVA_AWT_EVENT_TEXTSOURCE_H
00008 #include <java_awt_event/TextSource.h>
00009 #endif /* JAVA_AWT_EVENT_TEXTSOURCE_H */
00010 #ifndef JAVA_AWT_SPEC
00011 #include <java_awt/Spec.h>
00012 #endif /* JAVA_AWT_SPEC */
00013 
00014 namespace java {
00015   namespace awt {
00016 
00038     class JAVA_AWT_SPEC TextComponent 
00039       : public Component
00040       , public event::TextSource {
00041 
00042     public:
00043 
00048       virtual String getText() const;
00049 
00058       virtual void setText(const String& text);
00059 
00066       virtual String getSelectedText() const;
00067 
00075       virtual jboolean isEditable() const;
00076 
00093       virtual void setEditable(jboolean b);
00094 
00102       virtual jint getSelectionStart() const;
00103 
00119       virtual void setSelectionStart(jint selectionStart = 0);
00120 
00128       virtual jint getSelectionEnd() const;
00129 
00144       virtual void setSelectionEnd(jint selectionEnd = -1);
00145 
00178       virtual void select(jint selectionStart = 0, jint selectionEnd = -1);
00179 
00184       virtual void selectAll();
00185 
00206       virtual void setCaretPosition(jint position);
00207 
00214       virtual jint getCaretPosition() const;
00215 
00216       virtual String toString() const;
00217 
00218     private:
00219 
00220       REGISTER_MEMBERS;
00221 
00222     };
00223 
00224   } // namespace awt
00225 } // namespace java
00226 
00227 #endif /* JAVA_AWT_TEXTCOMPONENT_H */

Generated on Fri May 16 11:54:43 2008 for CrossPlatformJavaLikeC++API by  doxygen 1.5.3