Frame.h

Go to the documentation of this file.
00001 #ifndef JAVA_AWT_FRAME_H
00002 #define JAVA_AWT_FRAME_H 1
00003 
00004 #ifndef JAVA_AWT_WINDOW_H
00005 #include <java_awt/Window.h>
00006 #endif /* JAVA_AWT_WINDOW_H */
00007 #ifndef JAVA_AWT_MENUBAR_H
00008 #include <java_awt/MenuBar.h>
00009 #endif /* JAVA_AWT_MENUBAR_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 
00107     class JAVA_AWT_SPEC Frame 
00108       : public Window
00109       , virtual public MenuContainer {
00110 
00111     public:
00112 
00113       enum FRAME_STATE {
00114 
00121         FRAME_NORMAL = 0,
00122 
00128         FRAME_ICONIFIED = 1,
00129 
00137         FRAME_MAXIMIZED_HORIZ = 2,
00138 
00146         FRAME_MAXIMIZED_VERT = 4,
00147 
00168         FRAME_MAXIMIZED_BOTH = FRAME_MAXIMIZED_VERT | FRAME_MAXIMIZED_HORIZ,
00169 
00170       };
00171 
00182       Frame(const String& title = nilString, const Ref<Frame>& owner = 0);
00183 
00191       virtual String getTitle() const;
00192 
00200       virtual void setTitle(const String& title);
00201 
00209       virtual Ref<Image> getIconImage() const;
00210 
00220       virtual void setIconImage(const Ref<Image>& image);
00221 
00228       virtual Ref<MenuBar> getMenuBar() const;
00229 
00237       virtual void setMenuBar(const Ref<MenuBar>& mb);
00238 
00246       virtual jboolean isResizable() const;
00247 
00254       virtual void setResizable(jboolean resizable);
00255 
00274       virtual jint getState() const;
00275 
00300       virtual void setState(jint state);
00301 
00311       virtual Ref<Rectangle> getMaximizedBounds() const;
00312 
00333       virtual void setMaximizedBounds(const Ref<Rectangle>& bounds);
00334 
00343       virtual jboolean isUndecorated() const;
00344 
00358       virtual void setUndecorated(jboolean undecorated);
00359 
00367       virtual Ref<Font> getFont() const;
00368 
00375       virtual void remove(const Ref<MenuComponent>& m);
00376 
00377       virtual String toString() const;
00378 
00385       static Ref<List> getFrame();
00386 
00387     protected:
00388       REGISTER_MEMBERS;
00389     };
00390 
00391   } // namespace awt
00392 } // namespace java
00393 
00394 #endif /* JAVA_AWT_FRAME_H */

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