Window.h

Go to the documentation of this file.
00001 #ifndef JAVA_AWT_WINDOW_H
00002 #define JAVA_AWT_WINDOW_H 1
00003 
00004 #ifndef JAVA_AWT_CONTAINER_H
00005 #include <java_awt/Container.h>
00006 #endif /* JAVA_AWT_CONTAINER_H */
00007 #ifndef JAVA_AWT_EVENT_WINDOWSOURCE_H
00008 #include <java_awt_event/WindowSource.h>
00009 #endif /* JAVA_AWT_EVENT_WINDOWSOURCE_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 
00077     class JAVA_AWT_SPEC Window
00078       : public Container
00079       , public event::WindowSource
00080     {
00081 
00082     public:
00083 
00084       Window();
00085 
00108       Window(const Ref<Window>& owner);
00109 
00133       virtual void dispose();
00134 
00143       virtual void pack();
00144 
00177       virtual void toFront();
00178 
00204       virtual void toBack();
00205 
00214       virtual void setVisible(jboolean b);
00215 
00220       virtual Ref<Window> getOwner() const;
00221 
00227       virtual Ref<List> getOwnedWindows() const;
00228 
00263       virtual Ref<List> getListeners(const Class& type) const;
00264 
00265       /*
00266        * check if the AWT event is enabled either there is a listener 
00267        * or enabled by the mask.
00268        * @param e the event being checked
00269        */
00270       virtual jboolean eventEnabled(const AWTEvent& e) const;
00271 
00283       virtual void processEvent(const AWTEvent& e);
00284 
00291       virtual void dispatchEvent(AWTEvent& e);
00292 
00293       virtual String toString() const;
00294 
00295     private:
00296 
00297       REGISTER_MEMBERS;
00298 
00299     };
00300 
00301   } // namespace awt
00302 } // namespace java
00303 
00304 #endif /* JAVA_AWT_WINDOW_H */

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