00001 /* 00002 * @(#)JQScrollPaneBridge.h 0.2.0 / 2007-11-20 00003 * 00004 * Copyright (c) 2007, ETF and contributors. All rights reserved. 00005 * 00006 * This software is licensed under the LGPL, version 2.1, license. 00007 * A copy of the license is included in the file LICENSE-LGPL.txt. 00008 */ 00009 #ifndef JQSCROLLPANEBRIDGE_H 00010 #define JQSCROLLPANEBRIDGE_H 00011 00012 #include "JavaQxQSwing.h" 00013 00014 #include "JQComponentBridge.h" 00015 00016 /*^**************************************************************************^*/ 00017 /*- JQScrollPaneBridge Class. -*/ 00018 /*^**************************************************************************^*/ 00019 00026 class JAVAQX_EXPORT JQScrollPaneBridge : public JQComponentBridge 00027 { 00028 Q_OBJECT 00029 protected: 00030 JQScrollPaneBridge(JNIEnv *env, jobject obj); 00031 public slots: // native calls 00032 void setView(JNIEnv *env, jlong viewBridge); 00033 public: // native calls 00034 static jlong newInstance(JNIEnv *env, jobject obj); 00035 protected: 00036 virtual bool filterResizeEvent(QObject *obj, QResizeEvent *e); 00037 public: 00038 inline QScrollArea *qScrollArea() const; 00039 private: 00040 JQComponentBridge *m_viewBridge; 00041 }; 00042 00043 /*^**************************************************************************^*/ 00044 /*- JQScrollPaneBridge :: Public Inline Member Function. -*/ 00045 /*^**************************************************************************^*/ 00046 00052 inline QScrollArea *JQScrollPaneBridge::qScrollArea() const 00053 { 00054 return static_cast<QScrollArea *>(qObject()); 00055 } 00056 00057 /*^**************************************************************************^*/ 00058 /*- Macro Definition. -*/ 00059 /*^**************************************************************************^*/ 00060 00061 #define jqScrollPaneBridge (reinterpret_cast<JQScrollPaneBridge *>(bridge)) 00062 00063 #endif //JQSCROLLPANEBRIDGE_H 00064 00065 /*^***************************************************************************** 00066 File History: 00067 00068 - 2007-11-20 19:37:52 Slobodan 00069 Initial version 00070 00071 *****************************************************************************^*/