FlowLayout.h

Go to the documentation of this file.
00001 #ifndef JAVA_AWT_FLOWLAYOUT_H
00002 #define JAVA_AWT_FLOWLAYOUT_H 1
00003 
00004 #ifndef JAVA_AWT_LAYOUTMANAGER_H
00005 #include <java_awt/LayoutManager.h>
00006 #endif /* JAVA_AWT_LAYOUTMANAGER_H */
00007 #ifndef JAVA_AWT_SPEC
00008 #include <java_awt/Spec.h>
00009 #endif /* JAVA_AWT_SPEC */
00010 
00011 namespace java {
00012   namespace awt {
00013 
00054     class JAVA_AWT_SPEC FlowLayout : virtual public Object, virtual public LayoutManager {
00055 
00056     public:
00057 
00058       enum ALIGNMENT_TYPE {
00059 
00064         LEFT = 0,
00065 
00070         CENTER,
00071 
00076         RIGHT,
00077 
00088         LEADING,
00089 
00100         TRAILING,
00101 
00102       };
00103 
00115       FlowLayout(jint align = CENTER, jint hgap = 5, jint vgap = 5);      
00116 
00127       virtual jint getAlignment() const;
00128 
00143       virtual void setAlignment(jint align);
00144 
00151       virtual jint getHgap() const;
00152 
00159       virtual void setHgap(jint hgap);
00160 
00167       virtual jint getVgap() const;
00168 
00175       virtual void setVgap(jint vgap);
00176 
00182       virtual void addLayoutComponent(const String& name, const Ref<Component>& comp);
00183 
00190       virtual void removeLayoutComponent(const Ref<Component>& comp);
00191 
00202       virtual Dimension minimumLayoutSize(const Container& target) const;
00203 
00214       virtual Dimension preferredLayoutSize(const Container& target) const;
00215 
00225       virtual void layoutContainer(const Container& target);
00226 
00232       virtual String toString() const;
00233 
00234     protected:
00235 
00252       jint align;          // This is for 1.1 serialization compatibility
00253 
00263       jint hgap;
00264 
00274       jint vgap;
00275 
00276       REGISTER_MEMBERS;
00277 
00278     };
00279 
00280   } // namespace awt
00281 } // namespace java
00282 
00283 #endif /* JAVA_AWT_FLOWLAYOUT_H */

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