00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef JQTEXTFIELDBRIDGE_H
00010 #define JQTEXTFIELDBRIDGE_H
00011
00012 #include "JavaQxQSwing.h"
00013
00014 #include "JQComponentBridge.h"
00015
00016
00017
00018
00019
00026 class JAVAQX_EXPORT JQTextFieldBridge : public JQComponentBridge
00027 {
00028 Q_OBJECT
00029 protected:
00030 JQTextFieldBridge(JNIEnv *env, jobject obj);
00031 public slots:
00032 jstring getText(JNIEnv *env);
00033 void setText(JNIEnv *env, jstring text);
00034 void setHorizontalAlignment(JNIEnv *env, jint alignment);
00035 public:
00036 static void initialize(JNIEnv *env, jclass cls);
00037 static jlong newInstance(JNIEnv *env, jobject obj);
00038 public:
00039 void returnPressed(jint modifiers);
00040 public:
00041 inline QLineEdit *qLineEdit() const;
00042 protected slots:
00043 void returnPressedSlot();
00044 private:
00045 static jmethodID sm_returnPressedMID;
00046 };
00047
00048
00049
00050
00051
00057 inline QLineEdit *JQTextFieldBridge::qLineEdit() const
00058 {
00059 return static_cast<QLineEdit *>(qObject());
00060 }
00061
00062
00063
00064
00065
00066 #define jqTextFieldBridge (reinterpret_cast<JQTextFieldBridge *>(bridge))
00067
00068 #endif //JQTEXTFIELDBRIDGE_H
00069
00070
00071
00072
00073
00074
00075
00076