JQPanelBridge.h

00001 /*
00002  * @(#)JQPanelBridge.h  0.2.0 / 2007-10-29
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 JQPANELBRIDGE_H
00010 #define JQPANELBRIDGE_H
00011 
00012 #include "JavaQxQSwing.h"
00013 
00014 #include "JQContainerBridge.h"
00015 
00016 /*^**************************************************************************^*/
00017 /*- JQPanelBridge Class.                                                     -*/
00018 /*^**************************************************************************^*/
00019 
00026 class JAVAQX_EXPORT JQPanelBridge : public JQContainerBridge
00027 {
00028   Q_OBJECT
00029 protected:
00030   JQPanelBridge(JNIEnv *env, jobject obj);
00031 public slots: // native calls
00032   void setPanelType(JNIEnv *env, jint panelType);
00033   void setBorderStyle(JNIEnv *env, jint borderStyle);
00034   void setBorderWidth(JNIEnv *env, jint borderWidth);
00035 public: // native calls
00036   static jlong newInstance(JNIEnv *env, jobject obj);
00037 public:
00038   inline QFrame *qFrame() const;
00039 };
00040 
00041 /*^**************************************************************************^*/
00042 /*- JQPanelBridge :: Public Inline Member Function.                          -*/
00043 /*^**************************************************************************^*/
00044 
00050 inline QFrame *JQPanelBridge::qFrame() const
00051 {
00052   return static_cast<QFrame *>(qObject());
00053 }
00054 
00055 /*^**************************************************************************^*/
00056 /*- Macro Definition.                                                        -*/
00057 /*^**************************************************************************^*/
00058 
00059 #define jqPanelBridge (reinterpret_cast<JQPanelBridge *>(bridge))
00060 
00061 #endif //JQPANELBRIDGE_H
00062 
00063 /*^*****************************************************************************
00064   File History:
00065 
00066  - 2007-10-29 08:19:25 JavaQx Native Generator
00067    Initial version
00068 
00069 *****************************************************************************^*/

Copyright © 2007 ETF and contributors. All Rights Reserved.