TextComponentPeer.h

Go to the documentation of this file.
00001 #ifndef JAVA_AWT_PEER_TEXTCOMPONENTPEER_H
00002 #define JAVA_AWT_PEER_TEXTCOMPONENTPEER_H 1
00003 
00004 #ifndef JAVA_AWT_PEER_COMPONENTPEER_H
00005 #include <java_awt_peer/ComponentPeer.h>
00006 #endif /* JAVA_AWT_PEER_COMPONENTPEER_H */
00007 #ifndef JAVA_AWT_RECTANGLE_H
00008 #include <java_awt/Rectangle.h>
00009 #endif /* JAVA_AWT_RECTANGLE_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     namespace peer {
00017 
00025       class TextComponentPeer : virtual public ComponentPeer {
00026       public:
00027         virtual void setEditable(jboolean editable) = 0;
00028         virtual String getText() const = 0;
00029         virtual void setText(const String& l) = 0;
00030         virtual jint getSelectionStart() const = 0;
00031         virtual jint getSelectionEnd() const = 0;
00032         virtual void select(jint selStart, jint selEnd) = 0;
00033         virtual void setCaretPosition(jint pos) = 0;
00034         virtual jint getCaretPosition() const = 0;
00035         virtual jint getIndexAtPoint(jint x, jint y) const = 0;
00036         virtual Rectangle getCharacterBounds(jint i) const = 0;
00037         virtual jlong filterEvents(jlong mask) = 0;
00038       private:
00039         REGISTER_MEMBERS;
00040       };
00041 
00042     } // namespace peer
00043   } // namespace awt
00044 } // namespace java
00045 
00046 #endif /* JAVA_AWT_PEER_TEXTCOMPONENTPEER_H */

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