GridLayout.h

Go to the documentation of this file.
00001 #ifndef JAVA_AWT_GRIDLAYOUT_H
00002 #define JAVA_AWT_GRIDLAYOUT_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 #ifndef JAVA_AWT_SPEC
00011 #include <java_awt/Spec.h>
00012 #endif /* JAVA_AWT_SPEC */
00013 
00014 namespace java {
00015   namespace awt {
00016 
00083     class JAVA_AWT_SPEC GridLayout : virtual public Object, virtual public LayoutManager {
00084 
00085     public:
00086 
00111       GridLayout(jint rows = 1, jint cols = 0, jint hgap = 0, jint vgap = 0);
00112 
00118       virtual jint getRows() const;
00119 
00127       virtual void setRows(jint rows);
00128 
00134       virtual jint getColumns() const;
00135 
00148       virtual void setColumns(jint cols);
00149 
00155       virtual jint getHgap() const;
00156 
00162       virtual void setHgap(jint hgap);
00163 
00169       virtual jint getVgap() const;
00170 
00176       virtual void setVgap(jint vgap);
00177 
00183       virtual void addLayoutComponent(const String& name, const Ref<Component>& comp);
00184 
00189       virtual void removeLayoutComponent(const Ref<Component>& comp);
00190 
00211       virtual Dimension minimumLayoutSize(const Container& target) const;
00212 
00233       virtual Dimension preferredLayoutSize(const Container& target) const;
00234 
00253       virtual void layoutContainer(const Container& target);
00254 
00259       virtual String toString() const;
00260 
00261     protected:
00262 
00274       jint rows;
00275 
00287       jint cols;
00288 
00298       jint hgap;
00299 
00309       jint vgap;
00310 
00311       REGISTER_MEMBERS;
00312 
00313     };
00314 
00315   } // namespace awt
00316 } // namespace java
00317 
00318 #endif /* JAVA_AWT_GRIDLAYOUT_H */

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