BorderLayout.h

Go to the documentation of this file.
00001 #ifndef JAVA_AWT_BORDERLAYOUT_H
00002 #define JAVA_AWT_BORDERLAYOUT_H 1
00003 
00004 #ifndef JAVA_AWT_LAYOUTMANAGER2_H
00005 #include <java_awt/LayoutManager2.h>
00006 #endif /* JAVA_AWT_LAYOUTMANAGER2_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 
00109     class JAVA_AWT_SPEC BorderLayout : virtual public Object, virtual public LayoutManager2 {
00110 
00111     public:
00112 
00116       static const String NORTH;
00117 
00121       static const String SOUTH;
00122 
00126       static const String EAST;
00127 
00131       static const String WEST;
00132 
00136       static const String CENTER;
00137 
00145       static const String BEFORE_FIRST_LINE;
00146 
00154       static const String AFTER_LAST_LINE;
00155 
00163       static const String BEFORE_LINE_BEGINS;
00164 
00172       static const String AFTER_LINE_ENDS;
00173 
00182       static const String PAGE_START;
00183 
00192       static const String PAGE_END;
00193 
00202       static const String LINE_START;
00203 
00212       static const String LINE_END;
00213 
00218       BorderLayout(jint hgap = 0, jint vgap = 0);      
00219 
00224       virtual jint getHgap() const;
00225 
00231       virtual void setHgap(jint hgap);
00232 
00237       virtual jint getVgap() const;
00238 
00244       virtual void setVgap(jint vgap);
00245 
00265       virtual void addLayoutComponent(const Ref<Component>& comp, const ObjectRef& constraints);
00266 
00276       virtual void addLayoutComponent(const String& name, const Ref<Component>& comp);
00277 
00287       virtual void removeLayoutComponent(const Ref<Component>& comp);
00288 
00303       virtual Dimension minimumLayoutSize(const Container& target) const;
00304 
00320       virtual Dimension preferredLayoutSize(const Container& target) const;
00321 
00330       virtual Dimension maximumLayoutSize(const Container& target) const;
00331 
00339       virtual jfloat getLayoutAlignmentX(const Container& target);
00340 
00348       virtual jfloat getLayoutAlignmentY(const Container& target);
00349 
00354       virtual void invalidateLayout(const Container& target);
00355 
00375       virtual void layoutContainer(const Container& target);
00376 
00381       virtual String toString() const;
00382 
00383     protected:
00384 
00385       ObjectRef impl;
00386       REGISTER_MEMBERS;
00387 
00388     };
00389 
00390   } // namespace awt
00391 } // namespace java
00392 
00393 #endif /* JAVA_AWT_BORDERLAYOUT_H */

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